diff options
| author | Mathieu Ablasou <alexherbo2@gmail.com> | 2021-02-13 19:41:08 +0100 |
|---|---|---|
| committer | Mathieu Ablasou <alexherbo2@gmail.com> | 2021-02-13 19:41:08 +0100 |
| commit | 0858c0e50c6ca6d214fb088f052385a242548e83 (patch) | |
| tree | 31d79c7e756128de471605309560d4015508cfe2 /README.md | |
| parent | 3248bebd3a4ead28e708fc33243b2a08116934d9 (diff) | |
Starship: Make Kakoune prompt more general
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -268,19 +268,19 @@ PS1='$(test "$IN_KAKOUNE_CONNECT" && printf 🐈)$ ' `~/.config/starship.toml` ``` toml -[custom.kakoune_connect_client] +[custom.kakoune_client] symbol = '🐈' command = 'printf "${KAKOUNE_CLIENT}@${KAKOUNE_SESSION}"' -when = 'test "$IN_KAKOUNE_CONNECT" = 1 -a -n "$KAKOUNE_SESSION" -a -n "$KAKOUNE_CLIENT"' +when = 'test -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] +[custom.kakoune_session] symbol = '🐈' command = 'printf "${KAKOUNE_SESSION}"' -when = 'test "$IN_KAKOUNE_CONNECT" = 1 -a -n "$KAKOUNE_SESSION" -a -z "$KAKOUNE_CLIENT"' +when = 'test -n "$KAKOUNE_SESSION" -a -z "$KAKOUNE_CLIENT"' shell = ['dash'] description = 'Indicates that the current shell is connected to a Kakoune session' style = 'green italic' |
