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
|
|
|
|
2008-01-26 18:03:06 +03:00
|
|
|
which="$(which which)"
|
2007-03-15 20:31:42 +03:00
|
|
|
if wmii9rc; then
|
2008-01-26 18:03:06 +03:00
|
|
|
WMIIRC="$(PATH="$WMII_CONFPATH:$PATH" $which rc.wmii)"
|
2007-03-15 20:31:42 +03:00
|
|
|
else
|
2008-01-26 18:03:06 +03:00
|
|
|
WMIIRC="$(PATH="$WMII_CONFPATH:$PATH" $which wmiirc)"
|
2007-03-15 20:31:42 +03:00
|
|
|
fi
|
|
|
|
|
2008-01-26 18:03:06 +03:00
|
|
|
mkdir $lconf 2>/dev/null && $gconf/welcome &
|
2008-10-17 01:40:14 +04:00
|
|
|
"$WMIIRC" "$@" || exec "$gconf/wmiirc" "$@"
|
2008-01-18 23:05:45 +03:00
|
|
|
|