+# --- Work out my home directory ---
+#
+# This horrible trick resolves symbolic links. It enables resolving links,
+# changes directory and displays the name of the directory in a subshell
+# to avoid changing the current state.
+
+HOME=`(set -P; cd $HOME; pwd)`
+cd $HOME
+