mirror of
https://codeberg.org/mtxyz/nixconf.git
synced 2024-11-09 10:01:57 +00:00
Actually add subshell indicator to prompt
This commit is contained in:
parent
eb30ac81f0
commit
79f52c3d76
1 changed files with 2 additions and 2 deletions
|
@ -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 ' '
|
||||||
|
|
Loading…
Reference in a new issue