summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-11-02 13:07:21 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-11-02 13:07:21 -0400
commit3e8b163f22382806d2f9f8bfcb680189ab47ecbc (patch)
tree24f0a0794998359028e9b740b32fc953a7d6b039 /.bashrc
parent2f7a1f33ab6fc5017cd58e9db61e430dffc73846 (diff)
Only set TMPDIR="$HOME/tmp" if $HOME/tmp exists
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/.bashrc b/.bashrc
index c4e4c64..b299ed2 100644
--- a/.bashrc
+++ b/.bashrc
@@ -97,8 +97,11 @@ if [ -f /etc/bash_completion ]; then
fi
if [ "$TERM" != dumb ]; then
- export TMPDIR="$HOME/tmp"
+ if [ -d "$HOME/tmp" ]; then
+ export TMPDIR="$HOME/tmp"
+ fi
daemon emacs --daemon
daemon sysfiles
daemon maildirproc
fi
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*