• @zlatko@programming.dev
    link
    fedilink
    79 months ago

    For bash, this is enough:

    # Bash TAB-completition enhancements
    # Case-insensitive
    bind "set completion-ignore-case on"
    # Treat - and _ as equivalent in tab-compl
    bind "set completion-map-case on"
    # Expand options on the _first_ TAB press.
    bind "set show-all-if-ambiguous on"
    

    If you also add e.g.CDPATH=~/Documents, it will also always autocomplete from your Documents no matter which directory you’re on.

    • PennyJim
      link
      fedilink
      English
      29 months ago

      Setting CDPATH=:~/Documents/Dev makes navigating to any of my projects so much easier.

      Thanks for bringing it to my attention

      • @zlatko@programming.dev
        link
        fedilink
        19 months ago

        No problem!

        As an aside, I see we’re bringing the strangers thing over from Reddit. I hope more of the fun and funny stuff gets over, I miss some of the light shitposting.