A command line tool for jumping to a directory quickly.
# Add an alias for the current directory
jd -a name
# Jump to it from anywhere
jd name
# List all aliases
jd
# install directly
go get github.com/yuanchuan/jd
# or build from source
go build
Create a function to your .zshrc
or .bashrc
.
function jd {
builtin cd "$(/path/to/jd $@)"
}
$ jd --help
Usage of you/path/to/bin/jd:
-a string
Add an alias
-d string
Delete an alias.
-r string
Rename an alias.
This is my first Go program written in 2015.