Update rc/windowing/kitty.kak

Co-authored-by: Screwtapello <thristian@gmail.com>
This commit is contained in:
Hideaki Kawai 2021-01-22 08:41:41 +09:00 committed by GitHub
parent 0917191118
commit 38b914162a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,7 +15,7 @@ kitty-terminal <program> [<arguments>]: create a new terminal as a kitty window
The program passed as argument will be executed in the new terminal' \ The program passed as argument will be executed in the new terminal' \
%{ %{
nop %sh{ nop %sh{
if [[ -z ${kak_client_env_KITTY_LISTEN_ON:-} ]]; then if [ -z "$kak_client_env_KITTY_LISTEN_ON" ]; then
kitty @ new-window --no-response --window-type "$kak_opt_kitty_window_type" --cwd "$PWD" "$@" kitty @ new-window --no-response --window-type "$kak_opt_kitty_window_type" --cwd "$PWD" "$@"
else else
kitty @ --to "$kak_client_env_KITTY_LISTEN_ON" new-window --no-response --window-type "$kak_opt_kitty_window_type" --cwd "$PWD" "$@" kitty @ --to "$kak_client_env_KITTY_LISTEN_ON" new-window --no-response --window-type "$kak_opt_kitty_window_type" --cwd "$PWD" "$@"