upto

by driv

driv / upto

Bash command that allows to go up to a certain directory

124 Stars 5 Forks Last release: Not found MIT License 13 Commits 0 Releases

Available items

No Items, yet!

The developer of this repository has not created any items for sale yet. Need a bug fixed? Help with integration? A different license? Create a request here:

upto

Bash function that allows to go up to a certain directory.

Stop counting how many levels you have to go up in a folder tree and just type where you want to go! No more

cd ../../../..
.

Usage example

Current dir

/home/username/myfolder/myproject/mysubproject/function1/subfunction2/

If you want to go to

/home/username/myfolder/myproject
you just type
upto myproject

upto will go to the highest folder matched, in the previous example, if you write

upto my
you will move to
/home/username/myfolder

Configuration

Just add

upto.sh
to your
/etc/profile.d/
folder.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.