File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ if [ $UID -eq 0 ]; then CARETCOLOR="red"; else CARETCOLOR="blue"; fi
5
5
REPORTTIME=10 # show execution times for long-running commands
6
6
7
7
local return_code=" %(?..%{$fg [red]%}↵ %? %{$reset_color %})"
8
+ local user=
9
+ if [ " $USER " != gebner ]; then user=' %{$fg[cyan]%}%n%{$fg_bold[blue]%}@%{$reset_color%}' ; fi
8
10
9
- PROMPT=' %{${fg[cyan]}%}%m %{${fg_bold[blue]}%}:: %{$reset_color%}%{${fg[green]}%}%3~ $(git_prompt_info)' " ${return_code} " ' %{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} '
11
+ PROMPT=" ${user} " ' %{${fg[cyan]}%}%m %{${fg_bold[blue]}%}:: %{$reset_color%}%{${fg[green]}%}%3~ $(git_prompt_info)' " ${return_code} " ' %{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} '
10
12
11
13
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg [yellow]%}‹"
12
14
ZSH_THEME_GIT_PROMPT_SUFFIX=" › %{$reset_color %}"
You can’t perform that action at this time.
0 commit comments