-touch "$HOME/.hushlogin"
-
-#FreeBSD tries `_secure_path' on `.login_conf' before reaading the database,
-#so it needs to be compiled and unlinked for it to actually take effect.
-cd "$HOME"
-rm .login_conf.db
-cap_mkdb .login_conf
-unlink .login_conf
-cd -
+find xorg/icons -type d -mindepth 1 -maxdepth 2 | while read -r x; do
+ if [ -e "$x/index.theme" ]; then
+ l "$HOME/.icons/`basename "$x"`"
+ fi
+done
+find xorg/themes -type d -mindepth 1 -maxdepth 1 | while read -r x; do
+ l "$HOME/.themes/`basename "$x"`"
+done
+find fonts -type d -mindepth 1 -maxdepth 1 | while read -r x; do
+ l "$HOME/share/fonts/`basename "$x"`"
+done
+#XXX: potential bug with newlines in profile name (if ff even takes it)
+#XXX: breaks on multiple profiles
+ffdir="`find "$HOME/.mozilla/firefox" -type d -mindepth 1 -maxdepth 1 | head -1 2>$devnull`"
+if [ -d "$ffdir" ]; then
+ find firefox -mindepth 1 -maxdepth 1 | while read -r x; do
+ l "$ffdir/`basename "$x"`"
+ done
+ cd "$ffdir"
+ echo "Updating user.js"
+ sh ./user-js-updater.sh
+ cd - >$devnull
+fi
+
+# run .zprofile to set up tmp
+zsh ~/.zprofile