Add zsh
This commit is contained in:
11
zshrc.d/prompt.zsh
Normal file
11
zshrc.d/prompt.zsh
Normal file
@@ -0,0 +1,11 @@
|
||||
autoload -Uz vcs_info
|
||||
precmd_vcs_info() { vcs_info }
|
||||
precmd_functions+=( precmd_vcs_info )
|
||||
setopt prompt_subst
|
||||
zstyle ':vcs_info:git:*' formats '%F{240}(%b)%f'
|
||||
zstyle ':vcs_info:*' enable git
|
||||
|
||||
# PROMPT='%n@%m %(?.√.?%?) %F{green}%~%f %# '
|
||||
PROMPT='%n@%m:%F{green}%~%f %# '
|
||||
# RPROMPT='$vcs_info_msg_0_ %F{yellow}%*%f'
|
||||
RPROMPT='$vcs_info_msg_0_ %F{yellow}%*%f'
|
||||
Reference in New Issue
Block a user