zsh: add config files
This commit is contained in:
6
zsh/prompt.zsh
Normal file
6
zsh/prompt.zsh
Normal file
@@ -0,0 +1,6 @@
|
||||
parse_git_branch() {
|
||||
git symbolic-ref --short HEAD 2> /dev/null | sed -E 's/(.+)/ [\1]/g'
|
||||
}
|
||||
|
||||
setopt prompt_subst
|
||||
PROMPT='%F{yellow}%m%F{none}:%F{blue}%2d%F{none}%F{red}$(parse_git_branch) %F{%(?.green.red)}%#%F{none} '
|
||||
Reference in New Issue
Block a user