zsh prompt show username
This commit is contained in:
parent
52404fe7ce
commit
34b42832ac
1 changed files with 1 additions and 1 deletions
|
@ -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)'
|
||||
|
||||
|
|
Loading…
Reference in a new issue