Actually add subshell indicator to prompt

This commit is contained in:
Bailey 2024-03-18 18:07:31 -04:00
parent eb30ac81f0
commit 79f52c3d76

View file

@ -16,8 +16,8 @@ set -l divider (set_color blue) ' ~~ ' $normal
set -x __fish_git_prompt_show_informative_status yes set -x __fish_git_prompt_show_informative_status yes
set -l prompt_nix_shell '' 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
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 ' ' echo -s -n $suffix $normal ' '