diff options
author | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-08 14:32:24 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@lukeshu.com> | 2017-11-08 14:32:24 -0500 |
commit | 3477cafcc1ecf1cefd2c36a7fac36c86443ea573 (patch) | |
tree | 89ca8607ec9a69f30b7fb8acef194e1eff7e78b1 /.config/login.d | |
parent | 32d1b9b2d9951e96e96e672b48d52498dbc7ab24 (diff) | |
parent | 9fe48ff5cc04adf81496cc6f39e9c0c2a8668b79 (diff) |
Merge branch 'master' of git://lukeshu.com/dotfiles
Diffstat (limited to '.config/login.d')
-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..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[@]}" -)" |