summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorMathieu Ablasou <alexherbo2@gmail.com>2021-02-13 19:41:08 +0100
committerMathieu Ablasou <alexherbo2@gmail.com>2021-02-13 19:41:08 +0100
commit0858c0e50c6ca6d214fb088f052385a242548e83 (patch)
tree31d79c7e756128de471605309560d4015508cfe2 /README.md
parent3248bebd3a4ead28e708fc33243b2a08116934d9 (diff)
Starship: Make Kakoune prompt more general
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 0b7fb94..3578a79 100644
--- a/README.md
+++ b/README.md
@@ -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'