summaryrefslogtreecommitdiff
path: root/.local/lib/path.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 /.local/lib/path.sh
parent4652fb938285ad72a3d21042c118361969176f80 (diff)
re-jigger to allow easier setting of the path
Diffstat (limited to '.local/lib/path.sh')
-rw-r--r--.local/lib/path.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/.local/lib/path.sh b/.local/lib/path.sh
new file mode 100644
index 0000000..a45f8fd
--- /dev/null
+++ b/.local/lib/path.sh
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+if type config-path &>/dev/null; then
+ config_path=config-path
+else
+ # Bootstrap finding config-path
+ config_path="$HOME/.local/bin/config-path"
+fi
+eval "$("$config_path" | sed 's/^/export /')"