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).
This commit is contained in:
Marty Oehme 2025-10-18 12:58:43 +02:00
parent c1eb686cd3
commit 7f2520ece5
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -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