diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-15 15:33:51 -0400 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-05-15 15:33:51 -0400 |
commit | 898449d60e0f9966db1fe223998f7ad1e5eb45ad (patch) | |
tree | b241d4a00fbb35f49c65bb0902d5171f846f41df /.config/login.d/00_path.sh | |
parent | b1515657d4754327e62760f55ec7c6fc873f6fe9 (diff) |
login: load config-path better
Diffstat (limited to '.config/login.d/00_path.sh')
-rw-r--r-- | .config/login.d/00_path.sh | 11 |
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..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[@]}" -)" |