From ab56ec667504ff9ed02c19b16c45cf745938545c Mon Sep 17 00:00:00 2001 From: Adrian Perez Heredia Date: Tue, 26 Aug 2014 19:53:58 +0200 Subject: [PATCH 1/2] This patch adds support for terminal emulators. Without this it wont work on gnome-terminal on Ubuntu --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 42fc9a6..ada5c3a 100755 --- a/install.sh +++ b/install.sh @@ -100,6 +100,8 @@ if [ -z "$PROFILE" ]; then PROFILE="$HOME/.bash_profile" elif [ -f "$HOME/.zshrc" ]; then PROFILE="$HOME/.zshrc" + elif [ -f "$HOME/.bashrc" ]; then + PROFILE="$HOME/.bashrc" elif [ -f "$HOME/.profile" ]; then PROFILE="$HOME/.profile" fi From 825cb469694e9ac295612586477315449a20deca Mon Sep 17 00:00:00 2001 From: Adrian Perez Heredia Date: Thu, 28 Aug 2014 12:58:25 +0200 Subject: [PATCH 2/2] Updated error message for missing profile file --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index ada5c3a..4856cbe 100755 --- a/install.sh +++ b/install.sh @@ -111,7 +111,7 @@ SOURCE_STR="\nexport NVM_DIR=\"$NVM_DIR\"\n[ -s \"\$NVM_DIR/nvm.sh\" ] && . \"\$ if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then if [ -z "$PROFILE" ]; then - echo "=> Profile not found. Tried ~/.bash_profile, ~/.zshrc, and ~/.profile." + echo "=> Profile not found. Tried ~/.bash_profile, ~/bashrc, ~/.zshrc, and ~/.profile." echo "=> Create one of them and run this script again" else echo "=> Profile $PROFILE not found"