summaryrefslogtreecommitdiff
path: root/.config/login.d
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-11-08 14:38:09 -0500
committerLuke Shumaker <lukeshu@lukeshu.com>2017-11-08 14:38:09 -0500
commit4b418ee4900156ad98b316f31b7731d11837b164 (patch)
tree177e865439248f116503b5a9027887f4c1ec2bc4 /.config/login.d
parent73792d5157d709ebe3d5ff35563692ac04e89fbd (diff)
parent3477cafcc1ecf1cefd2c36a7fac36c86443ea573 (diff)
Merge branch 'master' into gluglugt60-par/master
Diffstat (limited to '.config/login.d')
-rw-r--r--.config/login.d/00_path.sh11
-rw-r--r--.config/login.d/10_ccache.sh4
2 files changed, 7 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[@]}"
-)"
diff --git a/.config/login.d/10_ccache.sh b/.config/login.d/10_ccache.sh
new file mode 100644
index 0000000..b9721c0
--- /dev/null
+++ b/.config/login.d/10_ccache.sh
@@ -0,0 +1,4 @@
+#!/hint/sh
+if test -d /usr/lib/ccache/bin; then
+ PATH="/usr/lib/ccache/bin:$PATH"
+fi