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
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
sudo
in Windows.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.
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
I created a script called GoUpALevel.
bind '"^H":"cd ..^M"'
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 ..
.
git () { if [ "$1" = "cd" ] then shift cd "./$(command git rev-parse --show-cdup)$*" else command git "$@" fi }
alias !="cd .."
Approximative syntax but you get the idea.
cd '/dev/sda1'
or
cd "C:/"
Nah, I always cd
to full path, that way I can easily use my history to move back there
td aliased to cd $(whatever the command is to get the git root directory)
cd..
Wait until we tell them about autojump
for i in { 1..4 }; do cd ..; done
alias .4=cd ../../../..
alias -g .4="../../../.."
I use a lot cd -
(go to previous) or just cd
to go home.
.....
for zsh users
Excuse me what? I've been multi cd'ing for years like a chump?
In your rc:
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
Usage:
1/2/3 $ ...
1 $
That's pretty neat
cd .....
I use zsh btw
donβt even need the cd since if itβs a dir, zsh automatically cd to that path ;)
just β¦..
works great
Whaaaaaaaaaaaaaaat
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
z myDir