Browse Source

Added option to skip git aliases definition

Fixes #947
master
Eduardo San Martin Morote 9 years ago committed by Kaleb Elwert
parent
commit
c0049855c5
  1. 4
      modules/git/README.md
  2. 2
      modules/git/alias.zsh

4
modules/git/README.md

@ -29,6 +29,10 @@ This setting affects all aliases and functions that call `git-status`.
Aliases Aliases
------- -------
Aliases are enabled by default. You can disable them with:
zstyle ':prezto:module:git:alias' skip 'yes'
### Git ### Git
- `g` is short for `git`. - `g` is short for `git`.

2
modules/git/alias.zsh

@ -26,6 +26,7 @@ zstyle -s ':prezto:module:git:status:ignore' submodules '_git_status_ignore_subm
# Aliases # Aliases
# #
if ! zstyle -t ':prezto:module:git:alias' skip 'yes'; then
# Git # Git
alias g='git' alias g='git'
@ -180,3 +181,4 @@ alias gwc='git clean -n'
alias gwC='git clean -f' alias gwC='git clean -f'
alias gwx='git rm -r' alias gwx='git rm -r'
alias gwX='git rm -rf' alias gwX='git rm -rf'
fi

Loading…
Cancel
Save