summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorAlex Leferry 2 <alexherbo2@gmail.com>2020-06-20 08:56:56 +0200
committerAlex Leferry 2 <alexherbo2@gmail.com>2020-06-20 09:00:27 +0200
commit05baa48582d383799e3e892d6c79656cf40b2f72 (patch)
treef280b19514ab32df327b655db70a84688abda038 /bin
parentf84c7152f6fb50de630dcabed384f04a204e9a10 (diff)
kak-connect: Fix :connect-shell
Diffstat (limited to 'bin')
-rwxr-xr-xbin/kak-connect7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/kak-connect b/bin/kak-connect
index e47de4d..1c9c1b4 100755
--- a/bin/kak-connect
+++ b/bin/kak-connect
@@ -28,7 +28,12 @@ EOF
kak -c "$kak_session" -e "
alias global terminal connect-detach
set-option global connect_environment %{
- KAKOUNE_CLIENT=''
+ # Unset KAKOUNE_CLIENT when attached to a terminal.
+ # Motivation: GUI apps can connect to the client.
+ # Example: :connect-shell dolphin
+ if test -t 1; then
+ KAKOUNE_CLIENT=''
+ fi
}
connect-terminal $@
"