commit | e45bfb8a2ba9a50e62d74c5cdf93aa04e7058295 | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Wed Jul 20 17:13:27 2022 +0100 |
committer | Skyler Grey <skyler3665@gmail.com> | Wed Jul 20 17:13:27 2022 +0100 |
tree | 107361600bd3d57a132d7e067ec5bbbf1c6637a9 | |
parent | ef54c2db71ecfaf684310a9325218ea0e0b1bf0d [diff] |
Add a bit of info if we're in a second level shell
diff --git a/src/apps/personal/zsh.nix b/src/apps/personal/zsh.nix index 9b50ee6..72d2bdb 100644 --- a/src/apps/personal/zsh.nix +++ b/src/apps/personal/zsh.nix
@@ -33,6 +33,10 @@ ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=243'; ZSH_HIGHLIGHT_STYLES[comment]='fg=248'; + + if [[ $SHLVL != "1" ]]; then + export prompt="($SHLVL) $prompt" + fi ''; enableSyntaxHighlighting = true; enableAutosuggestions = true;