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

https://github.com/yashladha/jumpo

Jump list for your shell
https://github.com/yashladha/jumpo

Last synced: 2 months ago
JSON representation

Jump list for your shell

Awesome Lists containing this project

README

        

## jumpo (j)

Jump list for your shell. It is a small binary that can be used to quickly move
between directories for very fast workflow 🚀. It works on a very simple concept
to use simple persistent key-value pair (JSON file on disk 😛) and prints the
valid `cd` command on the `stdout` which will be later consumed by the bash
function to `cd` into that directory.

## Demo

## Usage

Firstly put this function in your shell config (`.bashrc` or `.zshrc`)
```bash
j() {
`jumpo-mac $*`
}
```

Then after sourcing the shell config again or restarting the terminal. You will
be able to see the function.

```bash
functions | grep 'j ()'
```

```bash
# Last argument is the prefix string, which will be used for jumping
# Will use the directoy of execution as the location of jump.
j -add no

# To move that directory
j no
```

Available options are as follows:

```bash
# To add current directory to jump list with prefix
# Or use the short-hand command -a
j -add r1

# List the jumplist
# Or use the short-hand command -l
j -list

# Remove prefix from jumplist
# Or use the short-hand command -r
j -remove r1

# Move to the jump list
j r1
```

## Building

There is a simple Makefile present in the project which will build binaries for
different platforms.

```bash
make
```