summaryrefslogtreecommitdiff
path: root/.config/login.d/00_path.sh
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2018-01-10 19:38:58 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2018-01-10 19:38:58 -0500
commita2cd9d788f7b39e9f17d1fa2dc1382bd2f98e2c1 (patch)
treef2f5c900f0c9aded26d3d9ca0c25e9a6029a7a9e /.config/login.d/00_path.sh
parent75a63c7e7b3b055198884f31c0d7c516eaf9d32e (diff)
parent971e265cac74976670da2a87805b644e90826b95 (diff)
Merge branch 'master' into build64-par/master
Diffstat (limited to '.config/login.d/00_path.sh')
-rw-r--r--.config/login.d/00_path.sh11
1 files changed, 3 insertions, 8 deletions
diff --git a/.config/login.d/00_path.sh b/.config/login.d/00_path.sh
index ae2e8db..aa62f75 100644
--- a/.config/login.d/00_path.sh
+++ b/.config/login.d/00_path.sh
@@ -1,12 +1,7 @@
#!/hint/sh
-eval "$(
if type config-path &>/dev/null; then
- config_path=config-path
-else
+ eval "$(config-path | sed 's/^/export /')"
+elif [[ -x "$HOME/.local/bin/config-path" ]]; then
# Bootstrap finding config-path
- config_path="$HOME/.local/bin/config-path"
+ eval "$("$HOME/.local/bin/config-path" | sed 's/^/export /')"
fi
-IFS=$'\n'
-lines=($("$config_path"))
-printf -- 'export %s\n' "${lines[@]}"
-)"