9 lines
236 B
Bash
9 lines
236 B
Bash
function ns() {
|
|
args=()
|
|
for pkg in $@; do
|
|
args+=(nixpkgs#"$pkg")
|
|
done
|
|
>&2 echo + exec nix shell "${args[@]}"
|
|
export PATH=$(nix --extra-experimental-features "nix-command flakes" shell "${args[@]}" -c sh -c 'echo $PATH')
|
|
}
|