1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-23 23:34:12 +03:00

rc: Use $SHELL instead of spawning bash arbitrarily

This commit is contained in:
Frank LENORMAND 2017-04-30 13:38:32 +03:00
parent 97f7f9aff9
commit 9f62c1a552

View File

@ -8,7 +8,7 @@ All optional parameters are forwarded to the new window} \
echo "echo -color Error 'termcmd option is not set'"
exit
fi
if [ $# -eq 0 ]; then cmd="bash"; else cmd="$@"; fi
if [ $# -eq 0 ]; then cmd="${SHELL:-sh}"; else cmd="$@"; fi
setsid ${kak_opt_termcmd} ${cmd} -t kak_repl_window < /dev/null > /dev/null 2>&1 &
}}