fix: nih install command

This commit is contained in:
Gustavo "Guz" L. de Mello
2024-04-09 12:09:07 -03:00
parent 63606fa661
commit 1837f4f668

View File

@@ -136,12 +136,13 @@ function nih-install() {
local index=0
for arg in "$@"; do
if [[ "$arg" == "--" ]]; then
index=$(($index + 1))
break
fi
pkgs+=("nixpkgs#$arg")
index=$(($index + 1))
done
shift $(($index + 1))
shift $index
nix shell "${pkgs[@]}" "$@"
}