summaryrefslogtreecommitdiff
path: root/.config/login.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-08-14 15:51:54 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-08-14 15:51:54 -0400
commit3f570eac4afc3299fa2a55b39c57fae7f457bc84 (patch)
tree21250586016b1f4b93f2d23a3377a1a8e3313f59 /.config/login.sh
parent4652fb938285ad72a3d21042c118361969176f80 (diff)
re-jigger to allow easier setting of the path
Diffstat (limited to '.config/login.sh')
-rw-r--r--.config/login.sh25
1 files changed, 2 insertions, 23 deletions
diff --git a/.config/login.sh b/.config/login.sh
index 0a358f2..3dad752 100644
--- a/.config/login.sh
+++ b/.config/login.sh
@@ -13,28 +13,7 @@ umask 022
## Paths #############################################################
-# Unix
-prefixes=(
- "$HOME"
- "$HOME/.local.`uname -m`"
- "$HOME/.local/bin"
- "$HOME/.prefix.`uname -m`"
- "$HOME/.prefix"
- "$HOME"/.gem/ruby/*
-)
-for prefix in "${prefixes[@]}"; do
- if [[ -d "$prefix/bin" ]]; then
- export PATH="$prefix/bin:$PATH"
- fi
-done
-
-# Ruby
-for dir in "$HOME"/.prefix/lib; do
- if [[ -d "$dir" ]]; then
- export RUBYLIB="$dir"
- fi
-done
-unset prefixes dir prefix
+. "$HOME/.local/lib/path.sh"
# TMPDIR #############################################################
@@ -86,7 +65,7 @@ export _JAVA_OPTIONS
# X11
if [[ -z $XAUTHORITY ]]; then
- export XAUTHORITY=$HOME/.Xauthority
+ export XAUTHORITY="$HOME/.Xauthority"
fi
# D-Bus