ns
This commit is contained in:
@@ -153,8 +153,6 @@
|
||||
bin = "python -c 'import sys; sys.stdout.write(sys.stdin.read().strip())' | curl -is -X POST https://i.kuklef.se/upload -F content=@- -F expiration=10d | grep '^location:' | cut -d' ' -f2-";
|
||||
|
||||
denix = "sed -E 's@/nix/store/[^ /]+@@g'";
|
||||
|
||||
ns = "nix-shell -p";
|
||||
};
|
||||
|
||||
home.enableNixpkgsReleaseCheck = true;
|
||||
|
||||
8
users/pbsds/home/profiles/bashrc.d/nix-shell.sh
Normal file
8
users/pbsds/home/profiles/bashrc.d/nix-shell.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
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')
|
||||
}
|
||||
Reference in New Issue
Block a user