commit | e93e7ec27df3be9808281a4dd4a9496739f1367d | [log] [tgz] |
---|---|---|
author | Skyler Grey <skyler3665@gmail.com> | Wed Jul 20 22:51:35 2022 +0100 |
committer | Skyler Grey <skyler3665@gmail.com> | Wed Jul 20 22:51:35 2022 +0100 |
tree | f6b4ee16aa9fae287e3f92bde87cbe9eb168a000 | |
parent | f49e4f3748858b428c1a84ce4b85a23b90ad79dd [diff] |
Upgrade prompt when in subshell to show on the right
diff --git a/src/apps/personal/zsh.nix b/src/apps/personal/zsh.nix index 72d2bdb..59529ee 100644 --- a/src/apps/personal/zsh.nix +++ b/src/apps/personal/zsh.nix
@@ -35,7 +35,7 @@ ZSH_HIGHLIGHT_STYLES[comment]='fg=248'; if [[ $SHLVL != "1" ]]; then - export prompt="($SHLVL) $prompt" + export RPS1=$'%{\033[38;5;248m%}(%{$fg[red]%}L$SHLVL%{\033[38;5;248m%})%{\033[39m\033[49m%}' fi ''; enableSyntaxHighlighting = true;