irongit

Hygo AI custom shell.

has git branch now in zsh

huncholanehuncholaneauthored
parent d8e9226commit 7e9ac4807707b30265fb02db0986aae6eca6c4b0Browse files

1 file changed, +2 -1

+2-1setup.sh
@@ -15,7 +15,8 @@ get_git_branch() {
1515
1616 # Set up zsh prompt
1717 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 "
1920 fi
2021
2122 # Set up bash prompt