Skip to content

Commit

Permalink
Add git-grep aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Sorin Ionescu committed Sep 25, 2012
1 parent 44eaf9d commit 59bfd68
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion modules/git/alias.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,14 @@ alias gfc='git clone'
alias gfm='git pull'
alias gfr='git pull --rebase'

# Grep (g)
alias gg='git grep'
alias ggi='git grep --ignore-case'
alias ggl='git grep --files-with-matches'
alias ggL='git grep --files-without-matches'
alias ggv='git grep --invert-match'
alias ggw='git grep --word-regexp'

# Index (i)
alias gia='git add'
alias giA='git add --patch'
Expand Down Expand Up @@ -154,5 +162,4 @@ alias gwc='git clean -n'
alias gwC='git clean -f'
alias gwx='git rm -r'
alias gwX='git rm -rf'
alias gwg='git grep'

0 comments on commit 59bfd68

Please sign in to comment.