Copy example conf to rc file if doesnt exist. Tweaked example

This commit is contained in:
Nathan Broadbent
2011-10-18 00:44:51 +08:00
parent 8222eeafe1
commit 27e72401b6
2 changed files with 14 additions and 8 deletions

View File

@@ -8,3 +8,10 @@ for rc in bashrc zshrc; do
fi
done
# Set up
if ! [[ -s "$HOME/.git.scmbrc" ]]; then
cp "$HOME/.scm_breeze/git.scmbrc.example" "$HOME/.git.scmbrc"
echo "== git.scmbrc.example has been copied to ~/.git.scmbrc. "
fi