1
1
mirror of https://github.com/divnix/digga.git synced 2024-12-21 15:11:58 +03:00
digga/profiles/develop/zsh/functions/i

13 lines
215 B
Plaintext
Raw Normal View History

2019-12-17 02:13:37 +03:00
RED='\033[0;31m'
NC='\033[0m'
# needs one arguement or exit
[[ -n $2 || -z $1 ]] && {
print -u2 \
2019-12-18 01:58:40 +03:00
"${RED}error:${NC} takes exactly one package as an arguement"
2019-12-17 02:13:37 +03:00
2019-12-18 01:58:40 +03:00
return 1
2019-12-17 02:13:37 +03:00
}
nix profile install "nixpkgs#$1"