Some bashrc shorcuts for faster and profiecient directory browsing.
Here are some of the funtions that I have in my bashrc to make my life simple. They are not written by me but mostly taken from other places, but modified by me to some extent to suit my needs. If you know the original creator of these, let me know so I can add the attribution for the same.
This one is very useful.
.. (){
Continue reading
local arg=${1:-1};
local dir=””
while [ $arg -gt 0 ]; do
dir=”../$dir”
arg=$(($arg – 1));
done
cd $dir >&/dev/null
}