Nix : Fix tmpshell.
This commit is contained in:
parent
4b324cd3a4
commit
69e077e897
|
@ -76,14 +76,14 @@ alias shell="nix_shell"
|
|||
# Spawn nix-shell with specified packages.
|
||||
# Usage: nix_tmpshell <PACKAGES>
|
||||
function nix_tmpshell() {
|
||||
local pkgs="${*}"
|
||||
local pkgs="${@}"
|
||||
|
||||
if [[ "${pkgs}" = "" ]]; then
|
||||
help nix_tmpshell
|
||||
return 2
|
||||
fi
|
||||
|
||||
nix_shell="tmp" nix-shell -p "${pkgs}"
|
||||
nix_shell="tmp" nix-shell -p ${pkgs}
|
||||
}
|
||||
alias tmpshell="nix_tmpshell"
|
||||
|
||||
|
|
Reference in a new issue