From 189c3a2da187c085e4a785569e0e4048b3f645a5 Mon Sep 17 00:00:00 2001 From: Sarabadu Date: Mon, 9 Dec 2013 00:07:55 -0200 Subject: [PATCH 1/4] Update install.sh Added .baschrc before .profile for ubuntu users. --- install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 8117dca..7c28dc9 100755 --- a/install.sh +++ b/install.sh @@ -27,6 +27,8 @@ else 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 @@ -36,7 +38,7 @@ SOURCE_STR="[ -s \$HOME/.nvm/nvm.sh ] && . \$HOME/.nvm/nvm.sh # This loads NVM" if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then if [ -z $PROFILE ]; then - echo "=> Profile not found. Tried $HOME/.bash_profile and $HOME/.profile" + echo "=> Profile not found. Tried $HOME/.bash_profile , $HOME/.bashrc and $HOME/.profile" else echo "=> Profile $PROFILE not found" fi From a6005dff8c82b54dfa29f146d48b2b18fa4c7fb0 Mon Sep 17 00:00:00 2001 From: Sarabadu Date: Mon, 9 Dec 2013 10:56:11 -0200 Subject: [PATCH 2/4] updated message --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 7c28dc9..eeac074 100755 --- a/install.sh +++ b/install.sh @@ -38,7 +38,7 @@ SOURCE_STR="[ -s \$HOME/.nvm/nvm.sh ] && . \$HOME/.nvm/nvm.sh # This loads NVM" if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then if [ -z $PROFILE ]; then - echo "=> Profile not found. Tried $HOME/.bash_profile , $HOME/.bashrc and $HOME/.profile" + echo "=> Profile not found. Tried $HOME/.bash_profile, $HOME/.bashrc and $HOME/.profile" else echo "=> Profile $PROFILE not found" fi From 2067f931cb1ed17d0959682ebbf1b65f306a7d31 Mon Sep 17 00:00:00 2001 From: Sarabadu Date: Mon, 9 Dec 2013 10:58:19 -0200 Subject: [PATCH 3/4] updated for ubuntu users added .bashrc before .profile for ubuntu users --- install-gitless.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install-gitless.sh b/install-gitless.sh index d2ee6e6..26c41dd 100755 --- a/install-gitless.sh +++ b/install-gitless.sh @@ -27,6 +27,8 @@ if [ ! -z "$1" ]; then else if [ -f "$HOME/.bash_profile" ]; then PROFILE="$HOME/.bash_profile" + elif [ -f "$HOME/.bashrc" ]; then + PROFILE="$HOME/.bashrc" elif [ -f "$HOME/.profile" ]; then PROFILE="$HOME/.profile" fi From e328281608970b5fa5758f6548f033ac11cede5a Mon Sep 17 00:00:00 2001 From: Sarabadu Date: Tue, 10 Dec 2013 13:15:27 -0200 Subject: [PATCH 4/4] oxford comma... --- install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install.sh b/install.sh index eeac074..762046d 100755 --- a/install.sh +++ b/install.sh @@ -38,7 +38,7 @@ SOURCE_STR="[ -s \$HOME/.nvm/nvm.sh ] && . \$HOME/.nvm/nvm.sh # This loads NVM" if [ -z "$PROFILE" ] || [ ! -f "$PROFILE" ] ; then if [ -z $PROFILE ]; then - echo "=> Profile not found. Tried $HOME/.bash_profile, $HOME/.bashrc and $HOME/.profile" + echo "=> Profile not found. Tried $HOME/.bash_profile, $HOME/.bashrc, and $HOME/.profile" else echo "=> Profile $PROFILE not found" fi