wmii/cmd/wmiistartrc.sh

21 lines
442 B
Bash
Raw Normal View History

2008-05-30 01:22:56 +04:00
#!BINSH -f
2007-03-15 20:31:42 +03:00
# start wmiirc
2008-01-18 23:05:45 +03:00
export home="$HOME"
lconf="$home/.wmii-CONFVERSION"
2008-01-20 06:47:05 +03:00
gconf="CONFPREFIX/wmii-CONFVERSION"
2008-01-18 23:05:45 +03:00
2008-01-20 06:47:05 +03:00
export WMII_CONFPATH="$lconf:$gconf"
2008-02-05 02:33:57 +03:00
#export POSIXLY_CORRECT=gnu_hippies
2007-03-15 20:31:42 +03:00
which="$(which which)"
2007-03-15 20:31:42 +03:00
if wmii9rc; then
WMIIRC="$(PATH="$WMII_CONFPATH:$PATH" $which rc.wmii)"
2007-03-15 20:31:42 +03:00
else
WMIIRC="$(PATH="$WMII_CONFPATH:$PATH" $which wmiirc)"
2007-03-15 20:31:42 +03:00
fi
mkdir $lconf 2>/dev/null && $gconf/welcome &
"$WMIIRC" "$@" || exec "$gconf/wmiirc" "$@"
2008-01-18 23:05:45 +03:00