From 79f52c3d7610f56a65c54ab884413b8ceacc6515 Mon Sep 17 00:00:00 2001 From: Bailey Stevens Date: Mon, 18 Mar 2024 18:07:31 -0400 Subject: [PATCH] Actually add subshell indicator to prompt --- modules/home/core/fish_prompt.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/home/core/fish_prompt.fish b/modules/home/core/fish_prompt.fish index 90da21b..1f04db0 100644 --- a/modules/home/core/fish_prompt.fish +++ b/modules/home/core/fish_prompt.fish @@ -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 ' '