Only load if ~/.git.scmbrc exists
This commit is contained in:
@@ -2,9 +2,12 @@
|
|||||||
# scm_breeze.sh must be sourced, and not executed in a sub-shell.
|
# scm_breeze.sh must be sourced, and not executed in a sub-shell.
|
||||||
# e.g "source ~/.scm_breeze/scm_breeze.sh"
|
# e.g "source ~/.scm_breeze/scm_breeze.sh"
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
export scmbreezeDir="$(dirname ${BASH_SOURCE:-$0})"
|
export scmbreezeDir="$(dirname ${BASH_SOURCE:-$0})"
|
||||||
|
|
||||||
|
|
||||||
|
# Git
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
if [[ -s "$HOME/.git.scmbrc" ]]; then
|
||||||
# Load config
|
# Load config
|
||||||
. "$HOME/.git.scmbrc"
|
. "$HOME/.git.scmbrc"
|
||||||
|
|
||||||
@@ -14,10 +17,10 @@ export scmbreezeDir="$(dirname ${BASH_SOURCE:-$0})"
|
|||||||
. "$scmbreezeDir/lib/git/repo_management.sh"
|
. "$scmbreezeDir/lib/git/repo_management.sh"
|
||||||
. "$scmbreezeDir/lib/git/tools.sh"
|
. "$scmbreezeDir/lib/git/tools.sh"
|
||||||
|
|
||||||
|
|
||||||
if ! type ruby > /dev/null 2>&1; then
|
if ! type ruby > /dev/null 2>&1; then
|
||||||
# If Ruby is not installed, fall back to the
|
# If Ruby is not installed, fall back to the
|
||||||
# slower bash/zsh implementation of 'git_status_shortcuts'
|
# slower bash/zsh implementation of 'git_status_shortcuts'
|
||||||
. "$scmbreezeDir/lib/git/fallback/status_shortcuts_shell.sh"
|
. "$scmbreezeDir/lib/git/fallback/status_shortcuts_shell.sh"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user