1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-09-21 09:59:08 +03:00

rc extra: Fix kitty support

This commit is contained in:
Frank LENORMAND 2018-06-23 08:55:38 +03:00
parent 2a4d3eb13b
commit 560eb3ee36

View File

@ -1,14 +1,14 @@
hook global KakBegin .* %sh{
if [ "$TERM" = "xterm-kitty" -a -z "$TMUX" ]; then
hook global KakBegin .* %{ %sh{
if [ "$TERM" = "xterm-kitty" ] && [ -z "$TMUX" ]; then
echo "
alias global new kitty-new
alias global focus kitty-focus
"
fi
}
} }
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 \