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
|
|
|
|
}
|
|
|
|
|
2014-02-19 04:45:41 +01:00
|
|
|
def new -docstring 'create a new kak client for current session' \
|
|
|
|
-shell-params %{ nop %sh{
|
2012-12-26 17:52:17 +01:00
|
|
|
if (( $# != 0 )); then kakoune_params="-e '$@'"; fi
|
2013-11-04 21:10:14 +01:00
|
|
|
setsid ${kak_opt_termcmd} "kak -c ${kak_session} ${kakoune_params}" < /dev/null >& /dev/null &
|
2012-12-26 17:52:17 +01:00
|
|
|
}}
|