Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/raphael/gcd
Smart (?) cd
https://github.com/raphael/gcd
Last synced: 11 days ago
JSON representation
Smart (?) cd
- Host: GitHub
- URL: https://github.com/raphael/gcd
- Owner: raphael
- Created: 2015-03-18T23:27:14.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2016-07-14T19:38:45.000Z (over 8 years ago)
- Last Synced: 2024-10-05T21:41:40.412Z (3 months ago)
- Language: Go
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gcd
Recurse through $HOME/src/go/src, finds the first file / directory that matches the given argument and prints it.
e.g.:
```
$ gcd gcd
/Users/raphael/src/go/src/github.com/raphael/gcd
```## Usage
In your `.bashrc`, `.bash_profile` or equivalent:
```bash
function cdg() {
cd `gcd $1`
}
```
Then:
```
~ $ cdg gdc
~ src/go/src/github.com/raphael/gcd
```