mirror of
https://github.com/lloeki/dotfiles.git
synced 2025-12-06 07:24:39 +01:00
modularized zshrc
This commit is contained in:
parent
cf509c03fc
commit
d1bec20d74
9 changed files with 147 additions and 125 deletions
16
zsh/prompt
Normal file
16
zsh/prompt
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
source $DOTFILES_ZSH_DIR/prompt_vcs
|
||||
|
||||
set_rprompt() {
|
||||
vcs_info
|
||||
if [[ -n $vcs_info_msg_0_ ]]; then
|
||||
RPROMPT="$vcs_info_msg_0_"
|
||||
else
|
||||
RPROMPT="%F{green}%~%f"
|
||||
fi
|
||||
RPROMPT="%(?..%B[%?]%b ) $RPROMPT"
|
||||
}
|
||||
|
||||
PROMPT="%(?.%F{blue}›.%F{red}?)%f%n@%m%F{blue}>%f "
|
||||
prompt_opts=(cr percent)
|
||||
|
||||
# vim: ft=zsh
|
||||
Loading…
Add table
Add a link
Reference in a new issue