1 | # cody
|
2 | Code repository management
|
3 |
|
4 | ### installation
|
5 |
|
6 | ```
|
7 | yarn global add cody
|
8 | ```
|
9 |
|
10 | You will need to add some git repo urls to the `~/.code.d` directory.
|
11 |
|
12 | ```
|
13 | mkdir -o ~/.code.d/
|
14 | echo "git@github.com:alexjpaz/cody.git" >> ~/.code.d/github.com
|
15 | ```
|
16 |
|
17 | #### Usage
|
18 |
|
19 | Pull all repositories
|
20 |
|
21 | ```
|
22 | cody pull
|
23 | ```
|
24 |
|
25 | Search for a repository and print the directory
|
26 |
|
27 | ```
|
28 | cody cody
|
29 | ```
|
30 |
|
31 | ### Shell Integration
|
32 |
|
33 | In order to get the benefit of some features in cody you will need to copy the following into your shell configuration
|
34 |
|
35 |
|
36 | #### Bash
|
37 |
|
38 | ```
|
39 | function cody_cd() {
|
40 | $(npm bin cody)
|
41 | cd $(cat /tmp/cody_result)
|
42 | }
|
43 | ```
|