this post was submitted on 25 May 2025
908 points (98.3% liked)

linuxmemes

25357 readers
971 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

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 figuresWe 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.

    founded 2 years ago
    MODERATORS
     
    (page 2) 50 comments
    sorted by: hot top controversial new old
    [–] [email protected] 16 points 1 week ago (3 children)

    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

    load more comments (3 replies)
    [–] [email protected] 2 points 1 week ago

    I created a script called GoUpALevel.

    [–] [email protected] 1 points 1 week ago (1 children)
    [–] [email protected] 1 points 1 week ago

    Syntax get's twisted here. Second ^ is inserted automatically. As well as the One after the actual bash line.

    What it does: Bind Ctrl+Backspace to cd ...

    [–] [email protected] 2 points 1 week ago

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

    [–] [email protected] 0 points 1 week ago (1 children)

    alias !="cd .."

    Approximative syntax but you get the idea.

    [–] [email protected] 3 points 1 week ago (1 children)

    !! is the last command in my shell.

    load more comments (1 replies)
    [–] [email protected] 1 points 1 week ago

    cd '/dev/sda1'

    or

    cd "C:/"

    [–] [email protected] 3 points 1 week ago

    Nah, I always cd to full path, that way I can easily use my history to move back there

    [–] [email protected] 3 points 1 week ago* (last edited 1 week ago)

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

    [–] [email protected] 2 points 1 week ago
    [–] [email protected] 4 points 1 week ago

    Wait until we tell them about autojump

    [–] [email protected] 24 points 1 week ago

    for i in { 1..4 }; do cd ..; done

    [–] [email protected] 9 points 1 week ago (1 children)
    [–] [email protected] 2 points 1 week ago

    alias -g .4="../../../.."

    [–] [email protected] 16 points 1 week ago

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

    [–] [email protected] 44 points 1 week ago* (last edited 1 week ago) (1 children)
    [–] [email protected] 35 points 1 week ago (1 children)

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

    [–] [email protected] 10 points 1 week ago (2 children)

    Exactly. The fucking what now?

    load more comments (2 replies)
    [–] [email protected] 54 points 1 week ago* (last edited 1 week ago) (5 children)
    In your rc:
    alias ..='cd ..'
    alias ...='cd ../..'
    alias ....='cd ../../..'
    
    Usage:
    1/2/3 $ ...
    1 $
    
    [–] [email protected] 12 points 1 week ago

    That's pretty neat

    load more comments (4 replies)
    [–] [email protected] 13 points 1 week ago (2 children)
    [–] [email protected] 3 points 1 week ago* (last edited 1 week ago) (1 children)

    don’t even need the cd since if it’s a dir, zsh automatically cd to that path ;)

    just ….. works great

    load more comments (1 replies)
    [–] [email protected] 4 points 1 week ago

    Whaaaaaaaaaaaaaaat

    [–] [email protected] 1 points 1 week ago

    Sometimes I have to swap between two routed for several things, so I create a quick in-memory alias like aa=$(pwd)

    Then I can cd $aa

    [–] [email protected] 3 points 1 week ago
    load more comments
    view more: β€Ή prev next β€Ί