From 0d644e79971a81fb13ef0c8a1b8bedfd276b1452 Mon Sep 17 00:00:00 2001 From: Gaetan Semet Date: Mon, 13 Oct 2014 11:44:31 +0200 Subject: [PATCH] H in gr* aliases (git reset) means --hard Principle is to use a capital letter for more dangerous commands. grh means "git reset HEAD", which cannot involve data lose. grH means "git reset --hard", which CAN involve data lose. grhH now means "git reset --hard HEAD". I intentionnaly chose to not aliase H to "HEAD" and h to --hard. Signed-off-by: Gaetan Semet --- plugins/git2/git2.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/git2/git2.plugin.zsh b/plugins/git2/git2.plugin.zsh index 939a7b1ac..e1963db59 100644 --- a/plugins/git2/git2.plugin.zsh +++ b/plugins/git2/git2.plugin.zsh @@ -193,8 +193,8 @@ compdef _git grh=git-reset alias grH='git reset --hard' compdef _git grH=git-reset # Hard reset to HEAD -alias grhh='git reset HEAD --hard' -compdef _git grhh=git-reset +alias grhH='git reset HEAD --hard' +compdef _git grhH=git-reset ################ # Git merge (gm)