From eb165e55fc2e15bd5bd04d71fe8f904af969728b Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 29 Jul 2014 19:03:03 -0400 Subject: [PATCH] Add git-undo-commit alias --- zsh/aliases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/aliases b/zsh/aliases index f73def36..f621180e 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -6,6 +6,7 @@ if command_exists 'git'; then alias gap='git add --patch' alias gt='git tag' alias gtl='git describe --tags --abbrev=0' + alias gcu='git reset --soft "HEAD^"' # alias gpb='git push origin' git-move-root() { @@ -14,7 +15,7 @@ if command_exists 'git'; then fi # OS-specific aliases -if [[ "$OSTYPE" != darwin* ]]; then +if [[ "$OSTYPE" == darwin* ]]; then alias b='brew' alias v='vim' # Open file in emacs server; must be running!