-
-
Save Kiwi/e7c60ce4684fd47513ade73024694c80 to your computer and use it in GitHub Desktop.
bash function nixiA; shorthand for `nix-env -iA nixos.package` that works on multiple packages
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function nixiA() { | |
local arg=(); | |
for i in "$@" | |
do | |
arg+=("nixos.$i") | |
done | |
nix-env -iA "${arg[@]}" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment