• vvv@programming.dev
      link
      fedilink
      arrow-up
      16
      ·
      3 days ago

      most shells have a CDPATH which works just like PATH but for directories. set it to $HOME/projects/:$HOME/porn/ or whatever, and you’ll get the subdirectories in your cd tab completion, without installing extra stuff

    • fxomt@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      5
      ·
      3 days ago

      I’ve just replaced cd with it. It’s so fucking convenient writing cd n and immediately entering my config, then writing cd f and entering some other project of mine.

    • Albbi@lemmy.ca
      link
      fedilink
      arrow-up
      4
      arrow-down
      1
      ·
      3 days ago

      Me too! Only learned about it a while ago too. I hate logging into machines that don’t have it.