Files
config/users/pbsds/home/profiles/bashrc.d/nix-shell.sh
T
2025-02-06 11:19:44 +01:00

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')
}