Made install task extensible for future SCM additions

This commit is contained in:
Nathan Broadbent
2011-10-19 17:45:55 +08:00
parent f086bf00c9
commit dff87f1bfd

View File

@@ -12,10 +12,10 @@ done
# Set up ~/*.scmbrc files # Set up ~/*.scmbrc files
# --------------------------------------------------------------------------------------------- # ---------------------------------------------------------------------------------------------
# Git for scm in git; do
if ! [[ -s "$HOME/.git.scmbrc" ]]; then if ! [[ -s "$HOME/.$scm.scmbrc" ]]; then
cp "$HOME/.scm_breeze/git.scmbrc.example" "$HOME/.git.scmbrc" cp "$HOME/.scm_breeze/$scm.scmbrc.example" "$HOME/.$scm.scmbrc"
echo "== 'git.scmbrc.example' has been copied to '~/.git.scmbrc'. echo "== '~/.$scm.scmbrc' has been created. Please edit this file to change '$scm' settings."
Please edit this file to change SCM Breeze settings, Git aliases, and Git keyboard bindings." fi
fi done