Merge remote-tracking branch 'lenormf/fix-kitty'
This commit is contained in:
commit
fe57d90091
|
@ -1,14 +1,14 @@
|
||||||
hook global KakBegin .* %sh{
|
hook global KakBegin .* %{ %sh{
|
||||||
if [ "$TERM" = "xterm-kitty" -a -z "$TMUX" ]; then
|
if [ "$TERM" = "xterm-kitty" ] && [ -z "$TMUX" ]; then
|
||||||
echo "
|
echo "
|
||||||
alias global new kitty-new
|
alias global new kitty-new
|
||||||
alias global focus kitty-focus
|
alias global focus kitty-focus
|
||||||
"
|
"
|
||||||
fi
|
fi
|
||||||
}
|
} }
|
||||||
|
|
||||||
define-command -params .. kitty-new %{
|
define-command -params .. kitty-new %{
|
||||||
nop %sh{ kitty @ new-window "$(which kak)" -c $kak_session -e "$*" }
|
nop %sh{ kitty @ new-window "$(command -v kak 2>/dev/null)" -c "${kak_session}" -e "$*" }
|
||||||
}
|
}
|
||||||
|
|
||||||
define-command -params ..1 -client-completion \
|
define-command -params ..1 -client-completion \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user