summaryrefslogtreecommitdiff
path: root/.local/lib/path.sh
diff options
context:
space:
mode:
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 /')"