Hygo AI custom shell.
has git branch now in zsh
1 file changed, +2 -1
+2-1setup.sh
| @@ -15,7 +15,8 @@ get_git_branch() { | ||
| 15 | 15 | |
| 16 | 16 | # Set up zsh prompt |
| 17 | 17 | if [ -n "$ZSH_VERSION" ]; then |
| 18 | - autoload -Uz vcs_info; precmd() { vcs_info }; PROMPT="%F{blue}%n@%m %F{yellow}%~ %F{cyan}${vcs_info_msg_0_}%f %# " | |
| 18 | + NEWLINE=$'\n' | |
| 19 | + PROMPT="%F{214}%n@%m %F{white}%~ %F{51}($(get_git_branch))${NEWLINE}%F{214}%#%k%f " | |
| 19 | 20 | fi |
| 20 | 21 | |
| 21 | 22 | # Set up bash prompt |