From 6a1a1b0398151c0d7d9c8359758b5b9cf8f6602d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Fri, 29 Jan 2016 10:50:41 -0500 Subject: [PATCH] misc/nit_env.sh: add support for zsh and fix fallback creating a file MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- misc/nit_env.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/misc/nit_env.sh b/misc/nit_env.sh index 4b5a122..78ad0a3 100644 --- a/misc/nit_env.sh +++ b/misc/nit_env.sh @@ -128,8 +128,11 @@ __nit_env_main() { elif [ -f "$HOME/.bash_profile" ]; then echo "$str" >> "$HOME/.bash_profile" echo "succesfuly registerd nit .bash_profile" + elif [ -f "$HOME/.zshrc" ]; then + echo "$str" >> "$HOME/.zshrc" + echo "successfuly registered nit in .zshrc" else - echo "$str" >> "$HOME/.profile" + echo "$str" > "$HOME/.profile" echo "couldn't find .bashrc, .bash_profile, .profile. Created .profile and registered nit in it" fi fi -- 1.7.9.5