File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,12 @@ local return_code="%(?..%{$fg[red]%}$return_symbol %? %{$reset_color%})"
10
10
local user=
11
11
if [ " $USER " != gebner ]; then user=' %{$fg[cyan]%}%n%{$fg_bold[blue]%}@%{$reset_color%}' ; fi
12
12
13
- PROMPT=" ${user} " ' %{${fg[cyan]}%}%m %{${fg_bold[blue]}%}:: %{$reset_color%}%{${fg[green]}%}%3~ %{$fg[yellow]%}$(git_prompt_info)$(svn_prompt_info)' " ${return_code} " ' %{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} '
13
+ local in_nix_shell=
14
+ if [ " $IN_NIX_SHELL " = 1 ]; then
15
+ in_nix_shell=' %{$fg_bold[yellow]%}[nix-shell] %{$reset_color%}'
16
+ fi
17
+
18
+ PROMPT=" ${in_nix_shell}${user} " ' %{${fg[cyan]}%}%m %{${fg_bold[blue]}%}:: %{$reset_color%}%{${fg[green]}%}%3~ %{$fg[yellow]%}$(git_prompt_info)$(svn_prompt_info)' " ${return_code} " ' %{${fg_bold[$CARETCOLOR]}%}»%{${reset_color}%} '
14
19
15
20
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg [yellow]%}‹"
16
21
ZSH_THEME_GIT_PROMPT_SUFFIX=" › %{$reset_color %}"
You can’t perform that action at this time.
0 commit comments