1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00
kakoune/rc/client.kak

14 lines
401 B
Plaintext
Raw Normal View History

decl str termcmd %sh{
if [ -n "$TMUX" ]; then
echo "'tmux split-window -h'"
else
echo "'urxvt -e sh -c'"
fi
}
2014-02-19 07:45:41 +04:00
def new -docstring 'create a new kak client for current session' \
-shell-params %{ nop %sh{
if [ $# -ne 0 ]; then kakoune_params="-e '$@'"; fi
setsid ${kak_opt_termcmd} "kak -c ${kak_session} ${kakoune_params}" < /dev/null > /dev/null 2>&1 &
}}