Published on

up: easily traverse directories in CLI

Authors

I enjoy cding around when tinkering, but I often get tired of cd ../../...

This tool lets you quickly go up a directory structure by specifying either the distance or a parent directory name. Although utterly trivial, I've been using for more than 10 years

Usage Guide

You can up src to go up the path to the nearest src directory, for example, from ~/Developer/backend/src/main/java/com/example/service/db to ~/Developer/backend/src.

You can also up 2 to go up 2 levels, for example, from ~/Developer/backend/src to ~/Developer~.

There's also an interactive mode, wherein you can just type up, and you're presented with an indexed list of parent directories to jump to:

~/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
~/Developer/backend/src$

Download it

Check it out at https://github.com/ianatha/up!