scripts/misc/envwrap
2023-08-29 11:31:35 +02:00

7 lines
226 B
Bash
Executable file

#!/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) "$@"