summaryrefslogtreecommitdiff
path: root/.config/login.d
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2015-02-09 22:17:02 -0500
committerLuke Shumaker <shumakl@purdue.edu>2015-02-09 22:17:02 -0500
commitfee80e06d8cb661ee70cd4d676b5455c163b650e (patch)
treecbcdeab335afe219037665667cbc7e99c70f095e /.config/login.d
parenta634d94ab251b9d25d09e83b8c92ccbe85c74667 (diff)
path.sh, config-path: don't rely on external programs (sed)
Diffstat (limited to '.config/login.d')
-rw-r--r--.config/login.d/00_path.sh4
1 files changed, 1 insertions, 3 deletions
diff --git a/.config/login.d/00_path.sh b/.config/login.d/00_path.sh
index a45f8fd..f4ca3a6 100644
--- a/.config/login.d/00_path.sh
+++ b/.config/login.d/00_path.sh
@@ -1,9 +1,7 @@
-#!/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 /')"
+eval "$(IFS=$'\n'; lines=($("$config_path")); printf -- 'export %s\n' "${lines[@]}")"