add zellij-action command

This commit is contained in:
Bob Qi 2023-02-26 07:29:11 +08:00
parent 02bc786fb7
commit 4f0334c476

View File

@ -8,6 +8,9 @@ evaluate-commands %sh{
[ -z "${kak_opt_windowing_modules}" ] || [ -n "$ZELLIJ" -a -n "$ZELLIJ_SESSION_NAME" ] || echo 'fail zellij not detected'
}
define-command -params 1.. zellij-action %{ nop %sh{
zellij --session "$kak_client_env_ZELLIJ_SESSION_NAME" action "$@"
}}
define-command -hidden -params 2.. zellij-run %{ nop %sh{
zellij_run_options=$1
shift