An open API service indexing awesome lists of open source software.

https://github.com/artoria2e5/up

A bash script for moving up directories.
https://github.com/artoria2e5/up

Last synced: 17 days ago
JSON representation

A bash script for moving up directories.

Awesome Lists containing this project

README

        

up
==

A bash script for moving up directories.

How to use
----------

Create an alias in your .bashrc file:

up = ". /[absolute path to up script]/up"

Then, try opening a new bash terminal, and type the following:

$ up

Your shell should move up a directory automatically (to `/home` if your bash is configured to start in your home folder), as if you'd typed `cd ..`.

If you're *really* deep in - say, in a directory called `/home/joe/files/data/junk/stuff/random/misc/garbage` - and want to jump out of multiple levels of directory at once - say, four levels - type:

$ up 4

And your shell will move up four levels at once to `/home/joe/files/data/junk`, as if you'd typed `cd ../../../..`.