From 1dec5f2e08d5f13b32b308fe6dac4e827f169eb6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 13 Apr 2022 21:38:33 +0530 Subject: [PATCH] Help message for clone-in-kitty --- shell-integration/bash/kitty.bash | 4 ++++ shell-integration/zsh/kitty-integration | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/shell-integration/bash/kitty.bash b/shell-integration/bash/kitty.bash index 3011a7970..a086b48c9 100644 --- a/shell-integration/bash/kitty.bash +++ b/shell-integration/bash/kitty.bash @@ -277,6 +277,10 @@ clone-in-kitty() { while :; do case "$1" in "") break;; + -h|--help) + builtin printf "%s\n" "Clone the current bash session into a new kitty window. For usage instructions see: https://sw.kovidgoyal.net/kitty/shell-integration/#clone-shell" + return + ;; *) data="$data,a=$(builtin printf "%s" "$1" | builtin command base64)";; esac shift diff --git a/shell-integration/zsh/kitty-integration b/shell-integration/zsh/kitty-integration index f47c3d6ed..28c5fa02c 100644 --- a/shell-integration/zsh/kitty-integration +++ b/shell-integration/zsh/kitty-integration @@ -360,6 +360,10 @@ clone-in-kitty() { while :; do case "$1" in "") break;; + -h|--help) + builtin printf "%s\n" "Clone the current zsh session into a new kitty window. For usage instructions see: https://sw.kovidgoyal.net/kitty/shell-integration/#clone-shell" + return + ;; *) data="$data,a=$(builtin printf "%s" "$1" | builtin command base64)";; esac shift