scripts/misc/envwrap

7 lines
226 B
Plaintext
Raw Normal View History

2023-08-29 09:31:35 +00:00
#!/bin/zsh
source ${$(realpath "$0"):h:h}/lib/next-in-path.zsh
program="${0:a:t}"
envwrapconf=${XDG_CONFIG_HOME:-$HOME/.config}/envwrap/$program
[[ -e $envwrapconf ]] && source $envwrapconf
$(next-in-path "$program" $0) "$@"