Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Jilano273044y@highlight
# Goes up as many dirs as the number passed as argument, if nonne, goes up by 1 by default
up () {
local d=""
limit=$1
for ((i=1 ; i <= limit ; i++))
do
d=$d/..
done
d=$(echo $d | sed 's/^\///')
if [ -z "$d" ]; then
d=..
fi
cd $d
} -
Root829614yZsh. 🙂
I just type `..` now.
I also defined `...` through `......` for convenience.
(And `treee` through `treeeeee`!) -
Parzi89294yI always have to alias "cd.." in bash as it's muscle memory at this point and i can type it way faster than "cd .."
Related Rants
-
gururaju52*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx65This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus62Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
The joy that is the difference between `cd ..` and `cd..` is unexplainable
rant
linux
windows
ubuntu
bash