[bin] Remove pf and pd commands; I’ve not used them in years
[mina86-dot-files.git] / bin / term
blob7faf2f422dde1de90151115fde518dba662927f9
1 #!/bin/sh
3 set -eu
5 if cmd=$(which urxvt256c 2>/dev/null) || cmd=$(which urxvt 2>/dev/null); then
6 opts=
7 else
8 cmd=xterm
9 opts='+ah -aw -b 0 -bw 0 +vb +nul -pc +pob -s -si -sk +t'
12 while [ $# != 0 ]; do
13 case "$cmd:$1" in
14 urxvt:-mesg|urxvt256c:-mesg) shift ;;
15 *:-mesg) opts="$opts $1"; shift ;;
16 *:-T) opts="$opts -title $2"; shift 2;;
17 *:-N) opts="$opts -name $2"; shift 2;;
18 *:-*) break ;;
19 *) opts="$opts -e"; break ;;
20 esac
21 done
23 # shellcheck disable=SC2086
24 exec "$cmd" $opts "$@"