fix spacing and color escapes

This commit is contained in:
frosty 2024-05-29 06:33:07 -04:00
parent 68bb4189bd
commit 232df345a5

View file

@ -20,11 +20,11 @@ git_branch() {
else else
color="32" # Green for a clean state color="32" # Green for a clean state
fi fi
echo -e "\\e[0;${color}m${branch}\\e[0m" echo -e "\\e[0;${color}m${branch} "
fi fi
} }
PS1="\[\e[1;32m\]\u@\h \[\e[1;34m\]\w \$(git_branch) \[\e[0m\]\$ " PS1="\[\e[1;32m\]\u@\h \[\e[1;34m\]\w \$(git_branch)\[\e[0m\]\$ "
# shellcheck disable=SC1091 # shellcheck disable=SC1091
[ -f "$XDG_CONFIG_HOME/shell/shortcuts" ] && . "$XDG_CONFIG_HOME/shell/shortcuts" [ -f "$XDG_CONFIG_HOME/shell/shortcuts" ] && . "$XDG_CONFIG_HOME/shell/shortcuts"