mirror of
https://github.com/nix-community/nix-direnv.git
synced 2025-11-08 19:46:11 +01:00
use_nix: introduce initial generic nix argument parsing
This commit is contained in:
parent
a61b19986f
commit
891111e64d
1 changed files with 5 additions and 0 deletions
5
direnvrc
5
direnvrc
|
|
@ -284,6 +284,11 @@ use_nix() {
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
|
-*)
|
||||||
|
# Other arguments are assumed to be of a single arg form
|
||||||
|
# (--foo=bar or -j4)
|
||||||
|
extra_args+=("$i")
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
if [[ $in_packages == 1 ]]; then
|
if [[ $in_packages == 1 ]]; then
|
||||||
packages+=" $i"
|
packages+=" $i"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue