From 42e9f56dbc4bbcd960d3587563f4139f66629c31 Mon Sep 17 00:00:00 2001 From: tinogomes Date: Thu, 23 Feb 2012 09:01:01 -0200 Subject: [PATCH] alias to git rm for removed files --- plugins/git/git.plugin.zsh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index 154aa6db1..0a5117cb5 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -91,3 +91,6 @@ alias ggpush='git push origin $(current_branch)' compdef ggpush=git alias ggpnp='git pull origin $(current_branch) && git push origin $(current_branch)' compdef ggpnp=git + +# Remove from repo all files deleted +alias gitstrm="git st | egrep 'deleted' | sed -e 's/#//' -e 's/deleted:/git rm/' | sh"