$ cd .. $ ls $ cd .. $ ls
"hmm yes.. everything seems to be in order"
192 0 ReplyIn your rc: alias ..='cd ..' alias ...='cd ../..' alias ....='cd ../../..' Usage: 1/2/3 $ ... 1 $
52 0 Replycd ..
⭡ ⏎
⭡ ⏎
⭡ ⏎
52 0 Reply.....
for zsh users43 0 Replycd .. ls cd .. ls cd .. ls cd .. ls
29 0 ReplyDepending on where you are, maybe just "cd".
28 0 ReplyI alias
..
tocd ..
Works for me 🤷🏻
23 0 Replyfor i in { 1..4 }; do cd ..; done
23 0 ReplyI use a lot
cd -
(go to previous) or justcd
to go home.17 0 Replyi 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 typeits similar to what the zsh users in the comment section are doing
16 0 ReplyOr the alias I have set up
…..
16 0 Replycd ..
<Up arrow>
<Up arrow>
<Up arrow>
<Up arrow>
15 0 Replycd .....
I use zsh btw14 0 Replycd .. !! !! !!
11 0 Replyalias ..='cd ..' #: up one directory alias ...='cd ../..' #: up two directories
8 0 ReplyTbf it is less key presses since you can generally just recall the last command.
8 0 Replycd .. && ls !! !! !! !!
8 0 Replyalias .4=cd ../../../..
8 0 Reply.....
7 0 Reply~$ mkdir -p 1/2/3/4 ~$ pushd 1 ~/1 ~ 1$ pushd 2/3/4 ~/1/2/3/4 ~/1 ~ 4$ popd ~/1 ~ 1$
6 0 ReplyEasiest solution, use fish instead of bash! Default fish keybindings will allow you to just type . . or name a directory similar to how you could do with Zoxide.
Also, wait until you find about pushd and popd ;)
6 0 Replycd -
helps6 0 Replycd .../...
5 0 ReplyWait until we tell them about autojump
5 0 ReplyThe
history
of the CTO at a previous job was filled withdc
andsl
because he was a fucking moron. Yes I'm still bitter that he earned way more money than me who had to fix all his mess.5 0 ReplyI feel called out. Should definitely make an alias or two that auto CDs me the amount of times I need...
4 0 ReplyWhy no cd /////// speceficterm if you know how deep it is
Those are supposed to be stars. I'm not fixing this on a phone
4 0 Replycd /some/thing/i/remember
3 0 Replyz myDir
3 0 ReplyNah, I always
cd
to full path, that way I can easily use my history to move back there3 0 Replycd..
3 0 Replygit () { if [ "$1" = "cd" ] then shift cd "./$(command git rev-parse --show-cdup)$*" else command git "$@" fi }
3 0 ReplyChildhood me with only MS-DOS machines is all feeling nostalgic.
3 0 Replycd ./..
cd ../._2 0 Replyalias cdr='cd /'
Heh
2 0 Replytd aliased to cd $(whatever the command is to get the git root directory)
2 0 Replycd .
2 0 Replycd .. pwd
2 0 ReplyMore like cd… dir cd… dir cd…
2 0 Replybind '"^H":"cd ..^M"'
1 0 ReplySometimes 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
1 0 Replyhttps://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html#index-cd
TIL about $CDPATH may have to populate that!
1 0 ReplyThe good thing about Dolphin is you can have the real tree following your navigation. Want to go up a few levels, just click once, directly where you want to go next. None of this up, up, up nonsense. Great for snooping in many different folders in quick succession.
1 0 Replyalias !="cd .."
Approximative syntax but you get the idea.
1 0 Reply