-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
30 lines (23 loc) · 766 Bytes
/
zshrc
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
function regen-prompt () {
local wingding="%(?..%{$fg[red]%})\$%(?..%{$reset_color%})"
PROMPT="%{$fg[cyan]%}%n%{$reset_color%}@%{$fg[cyan]%}%m%f:%{$fg[blue]%}%~%{$reset_color%}$wingding "
local return_code="%(?..%{$fg[red]%}[%?])%{$reset_color%}"
RPROMPT="${return_code}"
}
function change-title () {}
function precmd () {
change-title
regen-prompt
}
# The following lines were added by compinstall
zstyle :compinstall filename "$HOME/.zshrc"
autoload -U compinit
compinit
# End of lines added by compinstall
for config_file (~/.dotfiles/zsh/*.zsh) source $config_file
# check for local configs that needn't be in the .dotfile repo
if [ -f ~/.zshrc.local ]; then
source ~/.zshrc.local
fi
# Remove any duplicate path entries
typeset -U PATH