[download]
local/bin/term
1
2
3 [[ $1 == -* ]] && shift
4
5 if [[ $# == 0 ]]; then
6 xfce4-terminal ||
7 xterm &
8 elif [[ $1 == /* ]]; then
9 xfce4-terminal -x "$@" ||
10 xterm -e "$@" &
11 else
12 s=${1%% *}
13 set -- "printf \"\e]0;${s^}\a\"; $@"
14 xfce4-terminal -x $SHELL -ic "$*" ||
15 xterm -e $SHELL -ic "$*" &
16 fi
|