Easiest 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 ;)
Easiest 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 ;)
I've used a script that made 'up 4' a thing. Forgot to migrate it though.
Heyy I have that in my .bashrc
Works a charm
cd .../...
cd ..
ls
ls -la
cd ..
ls
cd ..
rm -rf /
Honestly I haven't tried this on Linux yet, but didn't Windows implement this somewhere along the way?...
cd ....
I aliased cd
to a custom funtion in my bashrc to do this at one point, but cd ../../../..
is too engrained so I never rembered to use it.
You will probably like zoxide (i am not sure about policy on links here, but here you go https://github.com/ajeetdsouza/zoxide)
Zoxide is nice, or use Yazi so you can actually see where you're going.
Wait until we tell them about autojump
The history
of the CTO at a previous job was filled with dc
and sl
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.
Why no cd /////// speceficterm if you know how deep it is
Those are supposed to be stars. I'm not fixing this on a phone
I feel called out. Should definitely make an alias or two that auto CDs me the amount of times I need...
git () { if [ "$1" = "cd" ] then shift cd "./$(command git rev-parse --show-cdup)$*" else command git "$@" fi }
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)
z myDir
cd /some/thing/i/remember
I guess if you enjoy being a virgin that much you can do it that way.
Well, mom said I could be anything when I grew up...
Childhood me with only MS-DOS machines is all feeling nostalgic.
alias cdr='cd /'
Heh
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.