Closed metruzanca closed 1 year ago
clear-session
clears all session abbreviations https://zsh-abbr.olets.dev/scopes.html#session (closing the terminal, or restarting zsh exec zsh
does too)
If session abbreviations work for you, import aliases with abbr -S import-aliases
. Then abbr c
will clear them.
If you want to clear all user abbreviations, two good (though destructive) options are to delete everything from $ABBR_USER_ABBREVIATIONS_FILE
echo > $ABBR_USER_ABBREVIATIONS_FILE
or to delete the file
rm $ABBR_USER_ABBREVIATIONS_FILE
# or, if you want to be able to recover the file, use https://github.com/sindresorhus/trash-cli
I'm taking that reaction as good news that this solved your issue. I updated the title to be more specific now that we know what the problem was. Thanks for bringing this up!
Yes sorry I forgot to finish my reply. This was exactly what i wanted. I'm moving my setup to use sessions now.
Thanks for the great reply and thanks for the great plugin.
Is there an existing issue for this?
Update the issue title
Expected Behavior
When running
abbr c
/abbr clear-session
I'm expecting all abbr to be wiped. My use case being to runabbr c; abbr import-aliases
to get rid of old and add new aliases to abbr.Actual Behavior
All other commands seem to work fine. The actual plugin works as expected, its just deleting the abbr which is tedious. I can delete with
abbr erase <name>
, just not abbr c.Steps To Reproduce
Basic zsh install (no oh-my-zsh) w/ Zplug as the plugin manager running on MacOS ventura.
Environment
Installation method
Other
Installation method details
ZPlug setup
Anything else?
No response