Skip to content

Commit 8f19211

Browse files
committed
nix-env: simplify -A override
The nix-env specific `--attr|-A` specification will automatically override the spec from _nix_env_common_opts. So there's no need to filter it out.
1 parent 9fa2790 commit 8f19211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_nix-env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ for opt in $words; do
5656
case "$opt" in
5757
--install|-[^-]#i[^-]#)
5858
command_options=(
59-
${_nix_env_common_opts:#'(--attr -A)'*}
59+
$_nix_env_common_opts
6060
'(--attr -A)'{--attr,-A}'[Specify packages by attribute path instead of name]'
6161
$_nix_env_b
6262
$_nix_env_from_profile

0 commit comments

Comments
 (0)