Actually add subshell indicator to prompt
This commit is contained in:
parent
eb30ac81f0
commit
79f52c3d76
|
@ -16,8 +16,8 @@ set -l divider (set_color blue) ' ~~ ' $normal
|
|||
set -x __fish_git_prompt_show_informative_status yes
|
||||
|
||||
set -l prompt_nix_shell ''
|
||||
test $SHLVL != 0; and set -l prompt_subshell ' +'(math $SHLVL - 1)' '
|
||||
test $SHLVL -gt 1; and set -l prompt_subshell '+'(math $SHLVL - 1)' '
|
||||
|
||||
echo
|
||||
echo -s '[' $prompt_status '] ' (prompt_hostname) $divider (set_color cyan) (prompt_pwd) $divider (fish_vcs_prompt ' ' )
|
||||
echo -s '[' $prompt_status '] ' $prompt_subshell (prompt_hostname) $divider (set_color cyan) (prompt_pwd) $divider (fish_vcs_prompt ' ' )
|
||||
echo -s -n $suffix $normal ' '
|
||||
|
|
Loading…
Reference in a new issue