Skip to content

Reveal git aliases#45

Description

@fiunchinho

Hey! This plugin is almost exactly what I was looking for! Kudos 馃憤
But I'm missing something, which is the "reveal used alias" feature for git aliases.

After adding export ZSH_PLUGINS_ALIAS_TIPS_REVEAL=1, it works fine for regular aliases

$ ll
Alias for: ls -G -lh
total 64
drwxr-xr-x   16 jose.armesto  staff   512B 30 mar 21:49 .
drwxr-xr-x+ 125 jose.armesto  staff   3,9K 31 mar 12:37 ..
drwxr-xr-x   16 jose.armesto  staff   512B 31 mar 12:37 .git
-rw-r--r--    1 jose.armesto  staff   105B 23 may  2016 .gitignore
-rw-r--r--    1 jose.armesto  staff   4,8K 30 mar 21:39 CONTRIBUTING.md
-rw-r--r--    1 jose.armesto  staff   1,2K 30 mar 21:39 LICENSE.txt
-rw-r--r--    1 jose.armesto  staff   9,1K 30 mar 21:39 README.md

But it doesn't for git aliases

$ git dm
Alias tip: g dm
$ g dm
Alias for: git dm

I'd like to see this output

$ git dm
Alias for: !git branch --merged | grep -v '\*' | xargs -n 1 git branch -d

Since these are my git aliases

$ git alias
Alias tip: g alias
alias=!git config -l | grep ^alias | cut -c 7- | sort
amend=commit --amend --no-edit
dm=!git branch --merged | grep -v '\*' | xargs -n 1 git branch -d

Any ideas?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions