bp99 lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
weird@sub.wetshaving.social to linuxmemes@lemmy.world · 1 month ago

That is the way

sub.wetshaving.social

message-square
131
link
fedilink
1

That is the way

sub.wetshaving.social

weird@sub.wetshaving.social to linuxmemes@lemmy.world · 1 month ago
message-square
131
link
fedilink
alert-triangle
You must log in or # to comment.
  • gwilikers@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    td aliased to cd $(whatever the command is to get the got root directory)

  • Cosmo Kramer@lemmy.ml
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 month ago

    cd …

    sl

    choochoo

  • unsubtle@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    Wait until we tell them about autojump

  • Matriks404@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 month ago
    alias cd..='cd ..'
    alias cd...='cd ../..'
    alias cd....='cd ../../..
    alias cd.....='cd ../../../..'
    
    • AA5B@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      Then forget all that and just use

      cd ~ or cd /

      • NostraDavid@programming.dev
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        No need for ~ - just cd works as well.

  • axEl7fB5@lemmy.cafe
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago
    cd ..
    !!
    !!
    !!
    
  • lemmyhavesome@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 month ago
    In your rc:
    alias ..='cd ..'
    alias ...='cd ../..'
    alias ....='cd ../../..'
    
    Usage:
    1/2/3 $ ...
    1 $
    
    • petersr@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      This is the way.

    • marx2k@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      Or just use zsh

      • Matriks404@lemmy.world
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        Yeah, let’s use whole different shell, because you can’t add some few aliases to your .bashrc.

        • marx2k@lemmy.world
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          That’s not why I use a whole different shell. It just happens to be a perk of the one I use.

    • /home/pineapplelover@lemm.ee
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      That’s pretty neat

  • wpb@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    1 month ago

    ..... for zsh users

    • karmiclychee @sh.itjust.works
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      Excuse me what? I’ve been multi cd’ing for years like a chump?

      • beeng@discuss.tchncs.de
        link
        fedilink
        arrow-up
        0
        ·
        1 month ago

        Exactly. The fucking what now?

        • grrgyle@slrpnk.net
          link
          fedilink
          arrow-up
          0
          ·
          1 month ago

          Doesn’t work on my machine… is it a setting that needs to be enabled or something?

  • moopet@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    git () { if [ "$1" = "cd" ] then shift cd "./$(command git rev-parse --show-cdup)$*" else command git "$@" fi }

  • SchwertImStein@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago
    .....
    
  • zitrone 🍋@lemmings.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    i use fish shell with https://github.com/nickeb96/puffer-fish

    basically when i type ... it expands to ../.. and adds another /.. for every additional dot i type

    its similar to what the zsh users in the comment section are doing

    • oni ᓚᘏᗢ@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      edit-2
      1 month ago

      I was about to post something similar. With fish you can do your own functions, right? So, you can pass any dots as arguments to a function called cd, so, for every extra dot after .., you append a /.. at the end.

  • 7dev7random7@suppo.fi
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    bind '"^H":"cd ..^M"'

  • astrsk@fedia.io
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    z myDir

  • oplkill@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    cd…

  • beerclue@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    1 month ago

    I use a lot cd - (go to previous) or just cd to go home.

  • hperrin@lemmy.ca
    link
    fedilink
    English
    arrow-up
    0
    ·
    1 month ago

    alias .4=cd …/…/…/…

    • ziggurat@lemmy.world
      link
      fedilink
      arrow-up
      0
      ·
      1 month ago

      alias -g .4=“…/…/…/…”

linuxmemes@lemmy.world

linuxmemes@lemmy.world

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: !linuxmemes@lemmy.world

Hint: :q!


Sister communities:
  • !tech_memes@lemmy.world
  • !memes@lemmy.world
  • !lemmyshitpost@lemmy.world
  • !risa@startrek.website

Community rules (click to expand)

1. Follow the site-wide rules
  • Instance-wide TOS: https://legal.lemmy.world/tos/
  • Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack users for any reason. This includes using blanket terms, like “every user of thing”.
  • Don’t get baited into back-and-forth insults. We are not animals.
  • Leave remarks of “peasantry” to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
  • Everybody uses Arch btw, can’t quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. 🇬🇧 Language/язык/Sprache
  • This is primarily an English-speaking community. 🇬🇧🇦🇺🇺🇸
  • Comments written in other languages are allowed.
  • The substance of a post should be comprehensible for people who only speak English.
  • Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures

We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations.

  • Keep discussions polite and free of disparagement.
  • We are never in possession of all of the facts. Defamatory comments will not be tolerated.
  • Discussions that get too heated will be locked and offending comments removed.

 

Please report posts and comments that break these rules!


Important: never execute code or follow advice that you don’t understand or can’t verify, especially here. The word of the day is credibility. This is a meme community – even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don’t remove France.

Visibility: Public
globe

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

  • 18 users / day
  • 92 users / week
  • 581 users / month
  • 4.13K users / 6 months
  • 0 local subscribers
  • 25.7K subscribers
  • 1.08K Posts
  • 22.7K Comments
  • Modlog
  • mods:
  • zephyr@lemmy.world
  • rtxn@lemmy.world
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org