-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzshrc
More file actions
44 lines (30 loc) · 1.15 KB
/
Copy pathzshrc
File metadata and controls
44 lines (30 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# .zshrc
# Source global definitions
if [ -f /etc/zshrc ]; then
. /etc/zshrc
fi
function set_prompt() {
# Load version control information
autoload -Uz vcs_info
precmd_vcs_info() { vcs_info }
precmd_functions+=( precmd_vcs_info )
# Format the vcs_info_msg_0_ variable
zstyle ':vcs_info:git:*' formats ' (%b)'
setopt prompt_subst
export PROMPT='%F{green}%n@%m%f:%F{blue}%~%f%F{magenta}${vcs_info_msg_0_}%f %% '
RPROMPT="%D{%y/%m/%f}|%@"
}
set_prompt
export PATH=$HOME/bin:$HOME/scripts:$HOME/.local/bin:/opt/homebrew/bin:$PATH
export EDITOR=vim
HISTSIZE=1000
HISTFILESIZE=2000
#stty -ixon # disable C-s C-q scroll lock
source $HOME/.aliases
if [[ -r $HOME/local_dotfiles/.zshrc ]]; then
source $HOME/local_dotfiles/.zshrc
fi
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/arnon/dev/gcloud/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/arnon/dev/gcloud/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/Users/arnon/dev/gcloud/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/arnon/dev/gcloud/google-cloud-sdk/completion.zsh.inc'; fi