• zlatko@programming.dev
    link
    fedilink
    arrow-up
    7
    ·
    1 year 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@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      1 year 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
        arrow-up
        1
        ·
        1 year 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.