zlatko, 9 months ago For bash, this is enough: <span style="color:#323232;"># Bash TAB-completition enhancements </span><span style="color:#323232;"># Case-insensitive </span><span style="color:#323232;">bind "set completion-ignore-case on" </span><span style="color:#323232;"># Treat - and _ as equivalent in tab-compl </span><span style="color:#323232;">bind "set completion-map-case on" </span><span style="color:#323232;"># Expand options on the _first_ TAB press. </span><span style="color:#323232;">bind "set show-all-if-ambiguous on" </span> If you also add e.g.CDPATH=~/Documents, it will also always autocomplete from your Documents no matter which directory you’re on.
For bash, this is enough:
<span style="color:#323232;"># Bash TAB-completition enhancements </span><span style="color:#323232;"># Case-insensitive </span><span style="color:#323232;">bind "set completion-ignore-case on" </span><span style="color:#323232;"># Treat - and _ as equivalent in tab-compl </span><span style="color:#323232;">bind "set completion-map-case on" </span><span style="color:#323232;"># Expand options on the _first_ TAB press. </span><span style="color:#323232;">bind "set show-all-if-ambiguous on" </span>
If you also add e.g.CDPATH=~/Documents, it will also always autocomplete from your Documents no matter which directory you’re on.
CDPATH=~/Documents