diff options
Diffstat (limited to '.config/login.d')
-rw-r--r-- | .config/login.d/00_path.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/.config/login.d/00_path.sh b/.config/login.d/00_path.sh index 2d5f4a5..ae2e8db 100644 --- a/.config/login.d/00_path.sh +++ b/.config/login.d/00_path.sh @@ -1,8 +1,12 @@ #!/hint/sh +eval "$( 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 "$(IFS=$'\n'; lines=($("$config_path")); printf -- 'export %s\n' "${lines[@]}")" +IFS=$'\n' +lines=($("$config_path")) +printf -- 'export %s\n' "${lines[@]}" +)" |