docs: add instructions for removing fish help abbreviations#3655
Merged
Conversation
Add documentation showing how to erase the fish abbreviations for --help and -h, since the dash-prefixed names make removal non-obvious. The key is using -- before the abbreviation name to prevent fish from interpreting it as a flag. Closes sharkdp#3536
f3e3bbe to
89f3d2d
Compare
keith-hall
reviewed
Mar 26, 2026
Collaborator
keith-hall
left a comment
There was a problem hiding this comment.
Maybe it is worth putting these instructions in a callout or something to separate it from the main flow, otherwise it doesn't quite feel like a natural placement for the new instructions, to me at least, it reads like "to remove the abbreviations later, do this. This way, you can keep on using cp --help, but get colorized help pages." (but removing abbreviations wouldn't allow this.)
Address review feedback from @keith-hall: wrap the abbreviation removal instructions in a GitHub callout (> [!TIP]) to visually separate them from the main setup flow. Also reorder so the 'This way, you can keep on using...' sentence follows directly after the abbreviation creation, improving readability.
keith-hall
approved these changes
Mar 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add documentation showing how to remove the fish abbreviations for
--helpand-hthat are suggested in the README's "Highlighting--helpmessages" section.Problem
As reported in #3536, once a user creates these abbreviations, removing them is non-obvious because the abbreviation names start with dashes. Running
abbr --erase --helpdoesn't work — fish interprets--helpas a flag toabbritself, showing help text instead of erasing the abbreviation.Solution
Add a small section showing the correct removal syntax:
The
--(end-of-options marker) before the abbreviation name prevents fish from interpreting the dash-prefixed name as a flag.Closes #3536