terminal: Add bash shell indicator to starship prompt
So we know that we are not in a zsh shell currently.
This commit is contained in:
parent
6578d9acce
commit
e44baaf207
1 changed files with 6 additions and 1 deletions
|
|
@ -3,12 +3,13 @@
|
|||
|
||||
format = """
|
||||
$sudo\
|
||||
$custom\
|
||||
$username\
|
||||
$directory\
|
||||
$git_state\
|
||||
$git_status\
|
||||
$status\
|
||||
$character
|
||||
$character\
|
||||
"""
|
||||
|
||||
right_format ="""
|
||||
|
|
@ -80,6 +81,10 @@ symbol = " "
|
|||
style = 'bold yellow'
|
||||
format = "[$symbol]($style)"
|
||||
|
||||
[custom.shell_bash_indicator]
|
||||
command = 'echo '
|
||||
when = ''' test "$0" = "/usr/bin/bash" '''
|
||||
|
||||
# TODO: Would be lovely to have jujutsu support here
|
||||
# An example implementation: https://github.com/jj-vcs/jj/wiki/Starship
|
||||
# But currently very slow. Can be added with e.g. '${custom.jj}\' in format above
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue