diff --git a/rc/windowing/iterm.kak b/rc/windowing/iterm.kak index 2627cc3c..a1bd4697 100644 --- a/rc/windowing/iterm.kak +++ b/rc/windowing/iterm.kak @@ -5,7 +5,7 @@ provide-module iterm %{ # ensure that we're running on iTerm evaluate-commands %sh{ - [-z "${kak_opt_windowing_modules}" ] || [ "$TERM_PROGRAM" = "iTerm.app" ] || echo 'fail iTerm not detected' + [ -z "${kak_opt_windowing_modules}" ] || [ "$TERM_PROGRAM" = "iTerm.app" ] || echo 'fail iTerm not detected' } define-command -hidden -params 2.. iterm-terminal-split-impl %{ diff --git a/rc/windowing/kitty.kak b/rc/windowing/kitty.kak index fe77114b..219766a1 100644 --- a/rc/windowing/kitty.kak +++ b/rc/windowing/kitty.kak @@ -5,7 +5,7 @@ provide-module kitty %{ # ensure that we're running on kitty evaluate-commands %sh{ - [-z "${kak_opt_windowing_modules}" ] || [ "$TERM" = "xterm-kitty" ] || echo 'fail Kitty not detected' + [ -z "${kak_opt_windowing_modules}" ] || [ "$TERM" = "xterm-kitty" ] || echo 'fail Kitty not detected' } declare-option -docstring %{window type that kitty creates on new and repl calls (kitty|os)} str kitty_window_type kitty diff --git a/rc/windowing/screen.kak b/rc/windowing/screen.kak index 03cc2e08..02c63a83 100644 --- a/rc/windowing/screen.kak +++ b/rc/windowing/screen.kak @@ -6,7 +6,7 @@ provide-module screen %{ # ensure that we're running under screen evaluate-commands %sh{ - [-z "${kak_opt_windowing_modules}" ] || [ -n "$STY" ] || echo 'fail screen not detected' + [ -z "${kak_opt_windowing_modules}" ] || [ -n "$STY" ] || echo 'fail screen not detected' } define-command screen-terminal-impl -hidden -params 3.. %{ diff --git a/rc/windowing/x11.kak b/rc/windowing/x11.kak index 74af14d0..5e662683 100644 --- a/rc/windowing/x11.kak +++ b/rc/windowing/x11.kak @@ -4,7 +4,7 @@ provide-module x11 %{ # ensure that we're running in the right environment evaluate-commands %sh{ - [-z "${kak_opt_windowing_modules}" ] || [ -n "$DISPLAY" ] || echo 'fail DISPLAY is not set' + [ -z "${kak_opt_windowing_modules}" ] || [ -n "$DISPLAY" ] || echo 'fail DISPLAY is not set' } # termcmd should be set such as the next argument is the whole