💻 Software
Is it possible to configure the way bash completes directory names?
Fresh7 days ago
Mar 15, 2026512 viewsConfidence Score0%
0%
Problem
I'd like to instruct bash to use a special method to perform completion on certain directory names. For example, bash would call a program of mine to perform completion if a path starts with "$$", and perform completion normally otherwise. Is this at all possible? How would you implement it? Bounty…
Error Output
cp $$patern + <Tab>
Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: Is it possible to configure the way bash completes directory names?
Low Risk
You can do this by overriding the default binding for TAB(^i). First you need to override the TAB binding, then you need to build a function that calls your command, lastly you need to take the output from that command and update the variable that c…
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix