From 7f2520ece5b0534da1241292bf72655e5d94d26f Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Sat, 18 Oct 2025 12:58:43 +0200 Subject: [PATCH] starship: Add shell indicators for bash and nu Added little single-character displays at the front of the prompt if we are in a shell different from zsh to remind myself (since they all look exactly the same with starship). --- terminal/.config/starship.toml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/terminal/.config/starship.toml b/terminal/.config/starship.toml index e8031d0..4ffc47f 100644 --- a/terminal/.config/starship.toml +++ b/terminal/.config/starship.toml @@ -82,8 +82,12 @@ style = 'bold yellow' format = "[$symbol]($style)" [custom.shell_bash_indicator] -command = 'echo 󱆃' -when = ''' test "$0" = "/usr/bin/bash" ''' +command = 'echo ' +when = ' test "$STARSHIP_SHELL" = "bash" ' + +[custom.shell_nushell_indicator] +command = 'echo ' +when = ' test $env.STARSHIP_SHELL "==" "nu" ' # TODO: Would be lovely to have jujutsu support here # An example implementation: https://github.com/jj-vcs/jj/wiki/Starship