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.
|
# Spawn nix-shell with specified packages.
|
||||||
# Usage: nix_tmpshell <PACKAGES>
|
# Usage: nix_tmpshell <PACKAGES>
|
||||||
function nix_tmpshell() {
|
function nix_tmpshell() {
|
||||||
local pkgs="${*}"
|
local pkgs="${@}"
|
||||||
|
|
||||||
if [[ "${pkgs}" = "" ]]; then
|
if [[ "${pkgs}" = "" ]]; then
|
||||||
help nix_tmpshell
|
help nix_tmpshell
|
||||||
return 2
|
return 2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nix_shell="tmp" nix-shell -p "${pkgs}"
|
nix_shell="tmp" nix-shell -p ${pkgs}
|
||||||
}
|
}
|
||||||
alias tmpshell="nix_tmpshell"
|
alias tmpshell="nix_tmpshell"
|
||||||
|
|
||||||
|
|
Reference in a new issue