diff options
author | Michael SALIHI <admin@prestance-informatique.fr> | 2015-09-24 02:22:50 +0200 |
---|---|---|
committer | Michael SALIHI <admin@prestance-informatique.fr> | 2015-09-24 02:22:50 +0200 |
commit | 8e74f7c1aa44b5f74cf4ede49562f0586a562347 (patch) | |
tree | 1b825ced52711d29c02d37e9c61dddbd640f05b8 | |
parent | 76a26a2a59d8c6d0f65a4426cdb93920e255aea7 (diff) | |
download | zsh-8e74f7c1aa44b5f74cf4ede49562f0586a562347.tar.gz zsh-8e74f7c1aa44b5f74cf4ede49562f0586a562347.tar.bz2 zsh-8e74f7c1aa44b5f74cf4ede49562f0586a562347.zip |
Add alias for print latest tag name
-rw-r--r-- | plugins/git/git.plugin.zsh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/git/git.plugin.zsh b/plugins/git/git.plugin.zsh index bbee13ab8..4f2745038 100644 --- a/plugins/git/git.plugin.zsh +++ b/plugins/git/git.plugin.zsh @@ -84,6 +84,7 @@ alias gcs='git commit -S' alias gd='git diff' alias gdca='git diff --cached' +alias gdct='git describe --tags `git rev-list --tags --max-count=1`' alias gdt='git diff-tree --no-commit-id --name-only -r' gdv() { git diff -w "$@" | view - } compdef _git gdv=git-diff |