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.
- Host: GitHub
- URL: https://github.com/artoria2e5/up
- Owner: Artoria2e5
- License: other
- Created: 2015-10-25T23:02:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-25T23:03:44.000Z (over 9 years ago)
- Last Synced: 2025-02-17T15:52:14.346Z (3 months ago)
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 ../../../..`.