zsh prompt show username

This commit is contained in:
mwiegand 2022-06-01 11:33:28 +02:00
parent 52404fe7ce
commit 34b42832ac

View file

@ -21,7 +21,7 @@ function spwd {
echo
}
indicator="$(hostname -s)"
indicator="$(whoami)@$(hostname -s)"
local ret_status="%(?:%{$fg_bold[green]%}$indicator:%{$fg_bold[red]%}$indicator)"
PROMPT='${ret_status} %{$fg[cyan]%}$(spwd)%{$reset_color%} $(git_prompt_info)'