Skip to content
Easily go up in deep folder structures in shell
Python
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Initial commit Aug 13, 2019
LICENSE Initial commit Aug 13, 2019
README.md Add installation instructions for fish Aug 13, 2019
up.py Add support for '~' as arg Aug 13, 2019

README.md

up

Tiny utility to move up deep folder structures in CLI

Manual Installation

Copy https://raw.githubusercontent.com/ianatha/up/master/up.py to a location of your choice.

For BASH and ZSH

Add:

up () { cd `/Users/jdoe/Downloads/up.py $*` }

to your ~/.bashrc or ~/.zshrc.

For FISH

Add

function up
    cd (/Users/jdoe/Downloads/up.py $argv)
end

to your ~/.fishrc.

Example Usage

/Users/jdoe/Developer/backend/src/main/java/com/example/service/db$ up example
/Users/jdoe/Developer/backend/src/main/java/com/example$ up 4
/Users/jdoe/Developer/backend/src$ cd -
/Users/jdoe/Developer/backend/src/main/java/com/example$ up
 0. example
 1. com
 2. java
 3. main
 4. src
 5. backend
 6. Developer
 7. jdoe
 8. Users
? 4
/Users/jdoe/Developer/backend/src$ up ~
/Users/jdoe$ echo I love up
I love up
You can’t perform that action at this time.