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
- Host: GitHub
- URL: https://github.com/yashladha/jumpo
- Owner: yashLadha
- Created: 2021-05-13T02:04:14.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-06-17T05:36:44.000Z (almost 4 years ago)
- Last Synced: 2025-01-28T15:16:04.876Z (4 months ago)
- Language: Go
- Size: 364 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```