diff --git a/lib/helpers.bash b/lib/helpers.bash index 35cabc42..b163cfc8 100644 --- a/lib/helpers.bash +++ b/lib/helpers.bash @@ -181,6 +181,9 @@ _bash-it_update-() { if [ -z "$BASH_IT_REMOTE" ]; then BASH_IT_REMOTE="origin" fi + if [ -z "$BASH_IT_DEVELOPMENT_BRANCH" ]; then + BASH_IT_DEVELOPMENT_BRANCH="master" + fi # Defaults to stable update if [ -z "$1" ] || [ "$1" == "stable" ]; then version="stable" @@ -192,7 +195,7 @@ _bash-it_update-() { fi else version="dev" - TARGET=${BASH_IT_REMOTE}/master + TARGET=${BASH_IT_REMOTE}/${BASH_IT_DEVELOPMENT_BRANCH} fi git fetch $BASH_IT_REMOTE --tags &> /dev/null diff --git a/template/bash_profile.template.bash b/template/bash_profile.template.bash index f8f4705f..4a840df3 100755 --- a/template/bash_profile.template.bash +++ b/template/bash_profile.template.bash @@ -18,6 +18,10 @@ export BASH_IT_THEME='bobby' # cloned bash-it with a remote other than origin such as `bash-it`. # export BASH_IT_REMOTE='bash-it' +# (Advanced): Change this to the name of the main development branch if +# you renamed it or if it was changed for some reason +# export BASH_IT_DEVELOPMENT_BRANCH='master' + # Your place for hosting Git repos. I use this for private repos. export GIT_HOSTING='git@git.domain.com'