Made install task extensible for future SCM additions
This commit is contained in:
12
install.sh
12
install.sh
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user