From 753ab332d2d38b68184c5c47189034212530f658 Mon Sep 17 00:00:00 2001 From: Andrew Janke Date: Tue, 29 Sep 2015 20:00:56 -0400 Subject: [PATCH] Don't source ~/.zshrc after uninstall. We don't know which shell we're running under. And re-sourcing a different in a running session .zshrc doesn't get you to the right configuration. --- tools/uninstall.sh | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tools/uninstall.sh b/tools/uninstall.sh index add6d7e30..ba2eca798 100644 --- a/tools/uninstall.sh +++ b/tools/uninstall.sh @@ -23,11 +23,8 @@ if [ -e "$ZSHRC_ORIG" ]; then fi mv "$ZSHRC_ORIG" ~/.zshrc; - - source ~/.zshrc; else - if hash chsh >/dev/null 2>&1 - then + if hash chsh >/dev/null 2>&1; then echo "Switching back to bash" chsh -s /bin/bash else