• palordrolap@fedia.io
      link
      fedilink
      arrow-up
      4
      ·
      3 days ago

      This wouldn’t work.

      Well, it kind of would if you did alias downloads="cd Downloads" but then you wouldn’t cd downloads you’d just type downloads on its own.

      As other comments here already point out, you can do it with a symlink if you really want it. i.e. ln -s Downloads downloads, then you can cd downloads.

      Nowhere near the same as making everything effectively case insensitive, but it works for the odd one that you always mistype.

      There are ways to patch command completion and/or write a variant cd that does the job intelligently too, but those are harder work.

      Day-late edit that no-one will see: The answer is bind "set completion-ignore-case on". It’s embarrassing how simple this is and how long it took me to find it. I may have been trying to emulate this feature in other ways for a long time.