mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-24 07:53:41 +03:00
rc: Use $SHELL instead of spawning bash
arbitrarily
This commit is contained in:
parent
97f7f9aff9
commit
9f62c1a552
@ -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 &
|
||||
}}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user