Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Deduplicate argument history suggestions #4795
Currently, argument history iteration is a huge chore because it is extremely naïve as currently implemented and suggests literally every argument in the history that matches the current prefix, regardless if it's already been suggested or not.
Consider the following history items:
cp file1 file2 rm file1 touch file4 touch file1 mv file1 file3 cp file<UP>
The suggestions on repeated
referenced this issue
Mar 9, 2018
@ridiculousfish I know it's a long shot, but since you're currently poking around the completion/suggestion code (looking at recent commits on
It's super annoying to have the same argument suggested over and over after I've skipped it the first time!
Edit: Raised as a separate issue here: #5150