wmii/cmd/wmiistartrc.sh

21 lines
419 B
Bash
Raw Normal View History

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
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 &
2008-01-18 23:05:45 +03:00
exec "$WMIIRC" "$@"