From 898449d60e0f9966db1fe223998f7ad1e5eb45ad Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 15 May 2017 15:33:51 -0400 Subject: login: load config-path better --- .config/login.d/00_path.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.config/login.d/00_path.sh b/.config/login.d/00_path.sh index ae2e8db..dda528a 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[@]}" -)" -- cgit v1.1-4-g5e80