• nocturne@slrpnk.net
    link
    fedilink
    arrow-up
    0
    ·
    2 months ago

    So I realize this is a joke, but, and I am legit asking, isn’t there a command where you can tell Linux to treat Downloads and downloads as the same thing?

    • jdnewmil@lemmy.ca
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Sorta. If you put a FAT32 disk or sd card into a Linux system and mount it, it will ignore case because of the way the filenames are stored in that filesystem. However, there are a lot of important features you lose working on filesystems like that, so really it should be reserved for sneakernet with other operating systems.

    • overload@sopuli.xyz
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      I’ve kind of just accepted this is one of the differences between Linux and Windows that we as users need to understand is OS-specific.

    • angband@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      alias downloads=“cd ~/Downloads”

      edit: but if you want to get freaky in bash, alias downloads=“pushd ~/Downloads”

      probably works in some other shells too

    • TVA@thebrainbin.org
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Maybe, but there is always the possibility that Downloads and downloads both exist in that path and in a case sensitive file system, those are going to be two completely different directories, so adding that obfuscation on top might wind up biting you later.

      • jonathan@piefed.social
        link
        fedilink
        English
        arrow-up
        0
        ·
        2 months ago

        That’s where case-insensitive tab complete comes in. You can still tab through downloads and Downloads, and it doesn’t impact anything else.

        • TVA@thebrainbin.org
          link
          fedilink
          arrow-up
          0
          ·
          2 months ago

          Absolutely! That’s probably the best compromise to make it easier without risking something breaking or not working as expected

      • nocturne@slrpnk.net
        link
        fedilink
        arrow-up
        0
        ·
        2 months ago

        Thank you. I thought I remembered using something like this back when I ran OpenSUSE and redhat years ago.