diff --git a/git.scmbrc.example b/git.scmbrc.example index f9ea899..a174c32 100644 --- a/git.scmbrc.example +++ b/git.scmbrc.example @@ -2,11 +2,11 @@ # Git File Shortcuts Config # ------------------------------------------------------------------------------ # - Set your preferred prefix for env variable file shortcuts. -# (I chose 'e' because it is the easiest key to press after '$'.) +# (I chose 'e' because it is easy to slide your finger to it from '$'.) export git_env_char="e" # - Max changes before reverting to 'git status'. git_status_shortcuts() may slow down for lots of changes. -export gs_max_changes="110" -# - Automatically use 'git rm' to remove deleted files when using the git_add_shorcuts() command? +export gs_max_changes="99" +# - When using the git_add_shorcuts() command, automatically invoke 'git rm' to remove deleted files? export ga_auto_remove="yes" @@ -18,9 +18,11 @@ export GIT_REPO_DIR="$HOME/src" # e.g. "/opt/rails/project:/opt/rails/another project:$HOME/other/repo" export GIT_REPOS="" export git_status_command="git_status_shortcuts" +# Alias +git_repo_alias="s" -# Alias configuration +# Git Aliases # ------------------------------------------------------------------------------------ git_alias="g" @@ -60,11 +62,8 @@ git_log_stat_alias="gls" git_log_graph_alias="glg" git_show_alias="gsh" -# Git repo management -git_repo_alias="s" - -# Keyboard shortcuts configuration +# Git Keyboard Shortcuts # --------------------------------------------- git_status_shortcuts_keys="\C- " # CTRL+SPACE git_commit_all_keys="\C-x " # CTRL+x SPACE diff --git a/install.sh b/install.sh index a258a30..074de4c 100755 --- a/install.sh +++ b/install.sh @@ -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 +