public
Description: My configuration files for various applications
Homepage: http://mina86.com/
Clone URL: git://github.com/mina86/dot-files.git
mina86 (author)
Fri Oct 16 02:33:17 -0700 2009
commit  f20802d27bfc52da3bc4038a3042d3ccb058f875
tree    ee7f0243169d09a22185614288afec6b9cd6c5aa
parent  ba198f5843b077cbeff5ad542b8cccd33dc706d2
dot-files / term
100755 23 lines (19 sloc) 0.526 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh
 
if which urxvt >/dev/null >&1; then
CMD=urxvt
OPTS=
else
CMD=xterm
OPTS='+ah -aw -b 0 -bw 0 +vb +nul -pc +pob -s -si -sk +t'
fi
 
while [ $# != 0 ]; do
case "$CMD:$1" in
urxvt:-mesg) shift ;;
*:-mesg) OPTS="$OPTS $1"; shift ;;
*:-T) OPTS="$OPTS -title $2"; shift 2;;
*:-N) OPTS="$OPTS -name $2"; shift 2;;
*:-*) break ;;
*) OPTS="$OPTS -e"; break ;;
esac
done
 
exec "$CMD" $OPTS "$@"