2007-03-15 20:31:42 +03:00
|
|
|
#!/bin/sh -f
|
|
|
|
# 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-01-18 23:05:45 +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-01-18 23:05:45 +03:00
|
|
|
exec "$WMIIRC" "$@"
|
|
|
|
|