From 0858c0e50c6ca6d214fb088f052385a242548e83 Mon Sep 17 00:00:00 2001 From: Mathieu Ablasou Date: Sat, 13 Feb 2021 19:41:08 +0100 Subject: Starship: Make Kakoune prompt more general --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'README.md') 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' -- cgit v1.2.3