Skip to content

Commit

Permalink
git.zsh
Browse files Browse the repository at this point in the history
Corrections for git.
  • Loading branch information
srijanshetty committed May 25, 2015
1 parent b40923a commit 09157b7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config.zsh
Expand Up @@ -23,6 +23,8 @@ source "$_dwim_transform_dir/echo.zsh"

source "$_dwim_transform_dir/find.zsh"

source "$_dwim_transform_dir/git.zsh"

source "$_dwim_transform_dir/ls.zsh"

hash modprobe &>/dev/null &&
Expand Down
13 changes: 13 additions & 0 deletions transform.d/git.zsh
@@ -0,0 +1,13 @@
## git clone -> git clone --recursive
_dwim_prepend_transform '^git clone' \
'_dwim_sed "s/git clone /git clone --recursive /"'

## git rm -> git rm -f (on failure)
_dwim_prepend_transform '^git rm' \
'_dwim_sed "s/git rm /git rm -f /"' \
1

## git rm -f -> git rm -rf (on failure)
_dwim_prepend_transform '^git rm -f' \
'_dwim_sed "s/git rm -f /git rm -rf /"' \
1

0 comments on commit 09157b7

Please sign in to comment.