zsh: implement multi-dot directory change without cd

This commit is contained in:
2026-01-17 21:17:14 +00:00
parent ddbe70e11b
commit d1cf18299e
6 changed files with 29 additions and 1 deletions

View File

@@ -2,5 +2,4 @@ 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} '