develop#zsh: fix i function
This commit is contained in:
parent
2bad76157e
commit
f5b89dc39a
1 changed files with 2 additions and 2 deletions
|
@ -4,9 +4,9 @@ NC='\033[0m'
|
||||||
# needs one arguement or exit
|
# needs one arguement or exit
|
||||||
[[ -n $2 || -z $1 ]] && {
|
[[ -n $2 || -z $1 ]] && {
|
||||||
print -u2 \
|
print -u2 \
|
||||||
"${RED}takes one arguement${NC}"
|
"${RED}error:${NC} takes exactly one package as an arguement"
|
||||||
|
|
||||||
exit 1
|
return 1
|
||||||
}
|
}
|
||||||
|
|
||||||
nix profile install "nixpkgs#$1"
|
nix profile install "nixpkgs#$1"
|
||||||
|
|
Loading…
Reference in a new issue