mirror of
https://github.com/mawww/kakoune.git
synced 2024-12-24 12:02:15 +03:00
fa72d27f9a
* Kak relies on the kakrc file to be in ../share/kak/kakrc relative to kak binary rather than in the same directory * Added an install target to the Makefile
13 lines
333 B
Plaintext
13 lines
333 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
|
|
setsid ${kak_opt_termcmd} "kak -c ${kak_session} ${kakoune_params}" < /dev/null >& /dev/null &
|
|
}}
|