Skip to content

Instantly share code, notes, and snippets.

@Kiwi

Kiwi/.bashrc Secret

Created December 14, 2019 20:49
Show Gist options
  • Save Kiwi/e7c60ce4684fd47513ade73024694c80 to your computer and use it in GitHub Desktop.
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
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