home/src/rc/client.kak
Maxime Coste 3021c7f60a Remove $kak_socket replaced with $kak_session
use /tmp/kak-$kak_session to get the socket path
2013-09-25 19:04:52 +01:00

14 lines
337 B
Plaintext

decl str termcmd %sh{
if [[ -n "$TMUX" ]]; then
echo "'tmux split-window -h'"
else
echo "'urxvt -e sh -c'"
fi
}
def new -shell-params %{ nop %sh{
if (( $# != 0 )); then kakoune_params="-e '$@'"; fi
${kak_opt_termcmd} "kak -c ${kak_session} ${kakoune_params}" < /dev/null >& /dev/null &
disown
}}