4
if [ -d ~/.stdhome.orig -a ! -d ~/.stdhome.dev ]; then
6
elif [ ! -d ~/.stdhome.orig -a -d ~/.stdhome.dev ]; then
10
if [ -z "$CURRENT" ]; then
11
echo "Can't determine current state" >&2
16
if [ "$1" == "on" ]; then
18
elif [ "$1" == "off" ]; then
22
if [ "$TARGET" == "on" ]; then
24
if [ "$CURRENT" == "on" ]; then
32
sed -ie 's/^#\(home-dir\)/\1/' ~/.stdhomerc
34
elif [ "$TARGET" == "off" ]; then
36
if [ "$CURRENT" == "off" ]; then
44
sed -ie 's/^home-dir/#\0/' ~/.stdhomerc
47
echo currently $CURRENT