gazorby / fish-abbreviation-tips

💡 Help you remembering your abbreviations
MIT License
291 stars 7 forks source link

Handle commandlines starting with `-` #8

Closed benjamineskola closed 3 years ago

benjamineskola commented 3 years ago

If I type (for example) -s followed by a space at the beginning of the input (in order to use fish’s history search feature), then I get the following error:

string trim: Unknown option '-s '

If -- is added to the string trim command, then the following error occurs instead:

abbr: Mutually exclusive flags 'q/query' and `s/show` seen

Adding -- to both commands works as expected.

gazorby commented 3 years ago

LGTM !