# along with this program. If not, see <http://www.gnu.org/licenses/>.
+set -e
+
. ../lib.sh
if installed stumpwm; then
sed 's/^#/!/' Xdefaults > Xdefaults.tmp
mv Xdefaults.tmp Xdefaults
- if [ x`os` != xdarwin ]; then
+ if test ! "x`os`" = xdarwin; then
link xinitrc ~/.xinitrc
fi
- if [ -f xinitrc.local ]; then
+ if test -f xinitrc.local; then
link xinitrc.local ~/.xinitrc.local
fi
link xmodmaprc ~/.xmodmaprc
if installed feh; then
mkdir -p ~/.config
link feh ~/.config/feh
+ # Older feh versions only support theme options and configure them through
+ # ~/.fehrc.
+ link feh/themes ~/.fehrc
fi