diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-11-13 15:17:27 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2011-11-13 15:17:27 -0500 |
commit | 86e56415e8c8081c99b99209182a6b5b34361d74 (patch) | |
tree | 2fd7d5db2e9d311a031326b519af6d552dac521d /.profile | |
parent | d1fc37acc5294e94d9a4add0d13a02841b22444c (diff) | |
parent | fa0728204665d9d985f212826be65a563312e7e6 (diff) |
Merge branch 'master' of gitorious.org:lukeshu-dotfiles/lukeshu-dotfiles
Diffstat (limited to '.profile')
-rw-r--r-- | .profile | 31 |
1 files changed, 22 insertions, 9 deletions
@@ -9,16 +9,17 @@ 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 - -# if running bash -if [ -n "$BASH_VERSION" ]; then - # include .bashrc if it exists - if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" +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" +elif [ -d "$HOME/.prefix/tmp"]; then + export TMPDIR="$HOME/.prefix/tmp" fi # set SELECTED_EDITOR, EDITOR, and VISUAL to set the text editor used @@ -30,6 +31,18 @@ if [ -f "$HOME/.selected_editor" ]; then export VISUAL="${VISUAL:-$SELECTED_EDITOR}" fi +if [ -f "$HOME/.login-daemons" ]; then + . "$HOME/.login-daemons" +fi + +# if running bash +if [ -n "$BASH_VERSION" ]; then + # include .bashrc if it exists + if [ -f "$HOME/.bashrc" ]; then + . "$HOME/.bashrc" + fi +fi + if [ -x "`which alsactl`" ]; then alsactl --file $HOME/.alsa.save restore &> /dev/null || true fi |