olets / zsh-abbr

The zsh manager for auto-expanding abbreviations, inspired by fish. ~13,000 unique cloners as of May '24, 580+ Homebrew installs 6/23-6/24
https://zsh-abbr.olets.dev
Other
510 stars 18 forks source link

Omit the command existence check if both --force and --check are specified #38

Closed knu closed 2 years ago

knu commented 3 years ago

The cost for calling builtin command is not trivial if you have many directories in your PATH, and it becomes a real pain to have to wait for a long time when you define/import a lot of abbreviations. The abbreviations you have in your shell startup file or ~/.config/zsh/abbreviations are there because you know you are fine with any conflict they may cause, so there should be a way to quickly add abbreviations bypassing the check.

olets commented 1 year ago

@all-contributors please add @knu for code. (https://github.com/olets/zsh-abbr/pull/40, https://github.com/olets/zsh-abbr/pull/38)

allcontributors[bot] commented 1 year ago

@olets

I've put up a pull request to add @knu! :tada: