wmii/cmd/wmii9rc.sh
Kris Maglione 37d553300f Significant changes:
Improved focus semantics.
	/client/*/ctl slay command.
	Find unresponsive clients on kill.
	Draw titlebars of floating clients differently.
	Hack to set window properties of programs:
		wihack command/libwmii_hack.so library.
	Added wmii.rc, on which rc.wmii now depends.
	The usual cleanup.
2008-01-17 17:50:35 -05:00

25 lines
380 B
Bash

#!/bin/sh -f
RC=""
IFS=:
for i in "$PLAN9" `echo "P9PATHS"`; do
if [ -d "$i" -a -x "$i/bin/rc" ]; then
export PLAN9="$i"
RC="$i/bin/rc"
break;
fi
done
if [ -z "$RC" ]; then
exit 1
fi
if [ ! -x "$PLAN9/bin/read" ]; then
echo 1>&2 $0: Found rc, but not read'(1)'. You probably have an out-of-date 9base installed.
fi
if [ -n "$1" ]; then
exec "$RC" "$@"
else
true
fi