Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yuanchuan/jd
cd to path quickly
https://github.com/yuanchuan/jd
Last synced: 2 months ago
JSON representation
cd to path quickly
- Host: GitHub
- URL: https://github.com/yuanchuan/jd
- Owner: yuanchuan
- License: mit
- Created: 2015-08-11T16:43:03.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-02-26T08:59:42.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T12:03:37.202Z (6 months ago)
- Language: Go
- Homepage:
- Size: 4.88 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JD
A command line tool for jumping to a directory quickly.
```bash
# Add an alias for the current directory
jd -a name# Jump to it from anywhere
jd name# List all aliases
jd
```## Installation
```bash
# install directly
go get github.com/yuanchuan/jd# or build from source
go build
```## Setup
Create a function to your `.zshrc` or `.bashrc`.
```bash
function jd {
builtin cd "$(/path/to/jd $@)"
}
```## Usage
```bash
$ jd --helpUsage of you/path/to/bin/jd:
-a string
Add an alias
-d string
Delete an alias.
-r string
Rename an alias.
```## Notes
This is my first Go program written in 2015.