diff options
| author | Alex Leferry 2 <alexherbo2@gmail.com> | 2014-07-04 15:41:49 +0200 |
|---|---|---|
| committer | Alex Leferry 2 <alexherbo2@gmail.com> | 2014-07-04 15:41:49 +0200 |
| commit | a73bb330ea77e99a569ba2a33948d7989d477e77 (patch) | |
| tree | f97e6f8529ea3fcb6b8320858488d25f2ee3e7d7 | |
| parent | 6a1c98d04a0887b749eb157ee253e59d6e8f503f (diff) | |
client.kak: allow granular terminal ordering in termcmd option
| -rw-r--r-- | rc/client.kak | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/rc/client.kak b/rc/client.kak index e9591b7a..b2393717 100644 --- a/rc/client.kak +++ b/rc/client.kak @@ -4,15 +4,16 @@ decl str termcmd %sh{ if [ -n "$TMUX" ]; then echo "'tmux split-window -h'" else - for terminal in urxvt rxvt xterm roxterm mintty; do + for termcmd in 'urxvt -e sh -c' \ + 'rxvt -e sh -c' \ + 'xterm -e sh -c' \ + 'roxterm -e sh -c' \ + 'mintty -e sh -c' \ + 'gnome-terminal -e ' \ + 'xfce4-terminal -e ' ; do + terminal=${termcmd%% *} if which $terminal > /dev/null 2>&1; then - echo "'$terminal -e sh -c'" - exit - fi - done - for terminal in gnome-terminal xfce4-terminal; do - if which $terminal > /dev/null 2>&1; then - echo "'$terminal -e'" + echo "'$termcmd'" exit fi done |
