summaryrefslogtreecommitdiff
path: root/.profile
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2011-11-11 15:23:38 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2011-11-11 15:23:38 -0500
commitfb00140ca8a60a043b0ed83084e2491af1709200 (patch)
tree09d9f6d3536ba189376231c207e466bd11afe554 /.profile
parent2af83cc44a32b02ae031a6b7e618025d58fceb72 (diff)
parent2f7a1f33ab6fc5017cd58e9db61e430dffc73846 (diff)
Merge branch 'master' of gitorious.org:lukeshu-dotfiles/lukeshu-dotfiles
Conflicts: .crontab
Diffstat (limited to '.profile')
-rw-r--r--.profile9
1 files changed, 6 insertions, 3 deletions
diff --git a/.profile b/.profile
index bc8d481..004b7a2 100644
--- a/.profile
+++ b/.profile
@@ -9,9 +9,12 @@
umask 022
# set PATH so it includes user's private bin if it exists
-if [ -d "$HOME/.prefix/bin" ]; then
- export PATH="$HOME/.prefix/bin:$PATH"
-fi
+bins=`echo $HOME/bin $HOME/.prefix/bin $HOME/.gem/ruby/*/bin`
+for dir in $bins; do
+ if [ -d "$dir" ]; then
+ export PATH="$dir:$PATH"
+ fi
+done
if [ -d "$HOME/tmp"]; then
export TMPDIR="$HOME/tmp"