2013-03-03 17:25:40 +01:00
|
|
|
decl str termcmd %sh{
|
2012-12-26 17:52:17 +01:00
|
|
|
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_socket#/tmp/kak-} ${kakoune_params}" < /dev/null >& /dev/null &
|
|
|
|
disown
|
|
|
|
}}
|