Closed gczarnocki closed 2 years ago
Hi @gczarnocki
__abbr_tips_init
is only called once when plugin is installed to generate tips for existing aliases. Then a function is called each time you type a command and checks when you are using abbr -a
to add a new abbreviation, and if so, tips are updated.
I'm able to reproduce this bug, it seems that using -U
and --
to pass arguments prevents the plugin to detect that you are adding a new abbreviation
Using abbr -a g 'git'
should works
e877e28835681e387e55ea2bfa5003271b036a00 on master should fix this. You should now be able to pass any options to abbr
along with arguments
@gczarnocki can you confirm?
Question
Hello! First of all, thanks for this plugin for Fish, really appreciated. Helps when using lots of aliases.
I have a question about
__abbr_tips_init
because it seems that it's not running automatically when I modify my aliases:I've added an abbreviation:
abbr -a -U -- g 'git'
and runninggit
doesn't show abbr:After running
__abbr_tips_init
, it's shown:My Fish version:
System version:
Manjaro 21 Ornara
Fisher plugins:
I haven't seen anything in documentation about running this above command manually and I am wondering if there's some problem on my end.