Fix direnvrc to allow passing more arguments to print-dev-env

This commit is contained in:
Bryan Bennett 2024-08-08 08:04:20 -04:00
parent 081ed58524
commit bf9aa7e0aa
No known key found for this signature in database
GPG key ID: EE149E4215408DE9

View file

@ -41,7 +41,10 @@ use_flake_env() {
local ld=$(direnv_layout_dir)
export direnv
eval "$(@flake_env@ "$ld" "${1:-"."}")"
local flake_reference="${1:-"."}"
shift
eval "$(@flake_env@ "$ld" "$flake_reference" "$@"
export -n direnv