summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/kak-desktop3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/kak-desktop b/bin/kak-desktop
index 53925ec..7339aa3 100755
--- a/bin/kak-desktop
+++ b/bin/kak-desktop
@@ -4,6 +4,9 @@ main() {
# Send the edit command to the client.
if test -n "$KAKOUNE_SESSION" -a -n "$KAKOUNE_CLIENT"; then
edit "$@"
+ # Terminal.
+ elif test -t 1; then
+ kak "$@"
# GUI apps.
else
launch "$@"