diff --git a/profiles/develop/zsh/functions/i b/profiles/develop/zsh/functions/i new file mode 100644 index 00000000..3831813b --- /dev/null +++ b/profiles/develop/zsh/functions/i @@ -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"