From f5b89dc39a4338f8c81e689889821fecd2d8a04f Mon Sep 17 00:00:00 2001 From: Timothy DeHerrera Date: Tue, 17 Dec 2019 15:58:40 -0700 Subject: [PATCH] develop#zsh: fix i function --- profiles/develop/zsh/functions/i | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/develop/zsh/functions/i b/profiles/develop/zsh/functions/i index 3831813b..cde8d932 100644 --- a/profiles/develop/zsh/functions/i +++ b/profiles/develop/zsh/functions/i @@ -4,9 +4,9 @@ NC='\033[0m' # needs one arguement or exit [[ -n $2 || -z $1 ]] && { 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"