zsh: add config files

This commit is contained in:
2026-01-17 17:44:41 +00:00
parent ae7fecfad1
commit 33b5c9ddac
5 changed files with 70 additions and 0 deletions

6
zsh/prompt.zsh Normal file
View 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} '