My Lemmy Instance
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Gollum@feddit.de to Programmer Humor@programming.dev · 2 years ago

D or d come on

i.imgur.com

message-square
38
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
24

D or d come on

i.imgur.com

Gollum@feddit.de to Programmer Humor@programming.dev · 2 years ago
message-square
38
fedilink
  • cross-posted to:
  • programmerhumor@lemmy.ml
alert-triangle
You must log in or register to comment.
  • aleq@lemmy.world
    link
    fedilink
    arrow-up
    7
    ·
    2 years ago

    Reasonable and sane behavior of cd. Just get into the habit of always using lower case names for files and directories, that’s how our forefathers did it.

    • drolex@sopuli.xyz
      link
      fedilink
      arrow-up
      4
      ·
      2 years ago

      Yes, but this is the default on many distros, so for once the end user is not to blame

      • MooseBoys@lemmy.world
        link
        fedilink
        arrow-up
        3
        ·
        2 years ago

        Even worse, many components will ignore the XDG_DOWNLOAD_DIR var so even if you manually change it to $HOME/downloads (lower-case) it will often break things.

        • zlatko@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Why not just cd $XDG_DOWNLOAD_DIR in the first place?

          • unalivejoy@lemm.ee
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            2 years ago

            That’s not an environment variable. It’s defined in ${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs.

            Though you can use the xdg-user-dir DOWNLOAD command to get it automatically.

        • Synthead@lemmy.world
          link
          fedilink
          arrow-up
          2
          arrow-down
          1
          ·
          2 years ago

          Keep filling those bugs and stop complaining on random forums, kids

          • FiskFisk33@startrek.website
            link
            fedilink
            arrow-up
            3
            arrow-down
            1
            ·
            2 years ago

            Porque no los dos?

        • schnurrito@discuss.tchncs.de
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          Something something symlink Downloads to downloads

          • MooseBoys@lemmy.world
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Yeah but the main issue is that I don’t want there to be a Downloads directory in my home.

    • Honytawk@lemmy.zip
      link
      fedilink
      arrow-up
      2
      ·
      2 years ago

      Lower case directories?

      Eww

      ILikeMineInAWayICanReadThemProperly, instead of ilikemineinawayicanreadthemproperly

      • aleq@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        If a directory has multiple words in it I usually do kebab case: i-like-mine-in-a-way-i-can-read-them-properly. Both easier to read and type than pascal case.

        For more complex filenames I use a combination of kebab-case and snake_case, where the underscore separates portions of the file name and kebab-case the parts of those portions. E.g. movie-title_release-date-or-year_technical-specifications.mp4

        • jasory@programming.dev
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          CamelCase directories and snake_case files.

    • eek2121@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      Do. none of you use case insensitive autocomplete? “do ” “Downloads”

  • Sh1nyM3t4l4ss@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    2 years ago

    Use a shell with decent auto-completion. I have not been irritated by this in years.

    • nogooduser@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Won’t autocomplete fail if you do “cd d” and then try the autocomplete?

      Or is that what you mean by “decent” auto-completion?

      • bdonvr@thelemmy.club
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        No, it will probably go to “Documents”, and if you hit tab again it should go to “Downloads”. (Assuming you have the normal default folders)

      • rasensprenger@feddit.de
        link
        fedilink
        arrow-up
        2
        ·
        2 years ago

        bash’s autocomplete fails (at least with default settings), but e.g. zsh can figure out what you mean

      • newIdentity@sh.itjust.works
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        Not with a decent autocomplete. It will look for a folder starting with a small d and if it doesn’t exist it looks at a folder with a large D.

        • pgp@sh.itjust.works
          link
          fedilink
          arrow-up
          1
          ·
          2 years ago

          The choice of the letter d was brilliant, that’s for sure. Now I’m imagining a folder with a large D.

          • newIdentity@sh.itjust.works
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            I don’t get what you mean. It doesn’t matter if you write a uppercase or lowercase d

    • Skimmer@lemmy.zip
      link
      fedilink
      arrow-up
      0
      ·
      2 years ago

      What shell would you recommend? 🤔

      • Sh1nyM3t4l4ss@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        I use fish which is quite nice OOTB, although if you want a posix compliant shell, zsh with some plugins is also great.

      • stevehobbes@lemm.ee
        link
        fedilink
        arrow-up
        0
        ·
        2 years ago

        https://ohmyz.sh/

        • yum13241@lemm.ee
          link
          fedilink
          arrow-up
          0
          arrow-down
          1
          ·
          2 years ago

          Is fucking irrelevant. Just use your package manager.

          • stevehobbes@lemm.ee
            link
            fedilink
            arrow-up
            1
            ·
            2 years ago

            Get some anger management help.

            • yum13241@lemm.ee
              link
              fedilink
              arrow-up
              0
              arrow-down
              1
              ·
              2 years ago

              Maybe stop trying to be a smartass.

  • Asswaterpirate@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    2 years ago

    cd snuts

    • zlatko@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      did you mean smuts?

  • newIdentity@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 years ago

    Use Zsh or Fish and tab completion.

    • janAkali@lemmy.one
      link
      fedilink
      English
      arrow-up
      1
      ·
      2 years ago

      Or better yet, use z or zoxide:
      “z down” will fuzzy match the “~/Download” folder.

      • words_number@programming.dev
        link
        fedilink
        arrow-up
        1
        ·
        2 years ago

        This is the way!

  • pchem@feddit.de
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    2 years ago

    $ fuck

    Comes in handy quite frequently.

  • starman@programming.dev
    link
    fedilink
    English
    arrow-up
    1
    ·
    edit-2
    2 years ago

    So you type cd D tab and it brings you to Documents

  • ayushnix@lemmy.sdf.org
    link
    fedilink
    English
    arrow-up
    1
    ·
    2 years ago

    using capital letters in file/directory names on Linux :|

    • jonne@infosec.pub
      link
      fedilink
      arrow-up
      1
      ·
      edit-2
      2 years ago

      It’s a default on some distros, unfortunately, and changing it without updating the necessary env vars will break a bunch of stuff.

  • darcy@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    2 years ago

    i renamed my home folders to dl, docs, pics, etc. and use auto-cd (whatever its called) to just type dl instead of cd dl

  • HatFunction@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    2 years ago

    This is completely unrelated to the meme at hand, but the title just reminded me that for a while, Merriam-Webster mistakenly included the word “Dord” to mean density - because an editor misread the entry for “D or d” as an abbreviation of density.

    Wikipedia

    • Flying Squid@lemmy.world
      link
      fedilink
      arrow-up
      1
      ·
      2 years ago

      I am regularly disappointed that the word games I play on my phone don’t accept ‘dord.’ They should, damn it! One of them accepts Jedi, ffs!

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.78K users / day
  • 3.67K users / week
  • 8.96K users / month
  • 20K users / 6 months
  • 1 local subscriber
  • 24.7K subscribers
  • 1.35K Posts
  • 42.6K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.4
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org