Closed basbebe closed 3 years ago
I’m new to Starship, but isn’t the job of format
to add the space?
you are, of course, right.
I saw spaces in the symbol being used at the Nerd Font Symbols Preset. But the correct way would be to use format:
[custom.kakoune_connect_client]
symbol = '🐈'
command = 'printf "${KAKOUNE_CLIENT}@${KAKOUNE_SESSION}"'
when = 'test "$IN_KAKOUNE_CONNECT" = 1 -a -n "$KAKOUNE_SESSION" -a -n "$KAKOUNE_CLIENT"'
shell = ['dash']
description = 'Indicates that the current shell is connected to a Kakoune client'
style = 'green italic'
format = "[$symbol ($output )]($style)"
[custom.kakoune_connect_session]
symbol = '🐈'
command = 'printf "${KAKOUNE_SESSION}"'
when = 'test "$IN_KAKOUNE_CONNECT" = 1 -a -n "$KAKOUNE_SESSION" -a -z "$KAKOUNE_CLIENT"'
shell = ['dash']
description = 'Indicates that the current shell is connected to a Kakoune session'
style = 'green italic'
format = "[$symbol ($output )]($style)"
this makes it more coherent with other starship functions