mirror of
https://github.com/divnix/digga.git
synced 2024-11-24 13:12:19 +03:00
develop#zsh: i to install pkg
This commit is contained in:
parent
2693437e28
commit
5a276c6086
12
profiles/develop/zsh/functions/i
Normal file
12
profiles/develop/zsh/functions/i
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
RED='\033[0;31m'
|
||||||
|
NC='\033[0m'
|
||||||
|
|
||||||
|
# needs one arguement or exit
|
||||||
|
[[ -n $2 || -z $1 ]] && {
|
||||||
|
print -u2 \
|
||||||
|
"${RED}takes one arguement${NC}"
|
||||||
|
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
nix profile install "nixpkgs#$1"
|
Loading…
Reference in New Issue
Block a user