]> code.delx.au - dotfiles/commitdiff
Bash: Resolve symbolic links in $TMPDIR
authorJames Bunton <jamesbunton@delx.net.au>
Wed, 14 May 2008 00:54:52 +0000 (10:54 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Wed, 14 May 2008 00:54:52 +0000 (10:54 +1000)
This stops vim from saving backup files of temporary text files, eg for Mercurial or Mutt.

.bash/environment

index 96a4187e9d5ffb6caedcc7c18d951f3c07a9d2a1..ddbae4ad0df10b86050fe80060ddcc712ee4f7f2 100644 (file)
@@ -16,6 +16,9 @@ export PYTHONSTARTUP="${HOME}/.pythonrc.py"
 export HISTCONTROL="ignoredups"
 export HISTSIZE="10000"
 
+# Expand any symbolic links in the TMPDIR environment variable
+export TMPDIR="$(cd "${TMPDIR}" && pwd -P)"
+
 # Load the bash functions
 source "${HOME}/.bash/functions"