feat: add flake
This commit is contained in:
parent
057e095d90
commit
5c2ecff972
6 changed files with 75 additions and 0 deletions
16
README.md
Normal file
16
README.md
Normal file
|
@ -0,0 +1,16 @@
|
|||
# repo-rs
|
||||
|
||||
## Usage
|
||||
|
||||
`h repo-name` resolves the path to `repo-name` and changes the current working directory to it.
|
||||
`h https://git.example.com/dadada/example.git` clones the repo `example` into `~/code/git.example.com/dadada/example` and changes the current working directory to it.
|
||||
In this example `~/code` is the path in which repos should be stored; it can be specified using `export REPO_CODE_ROOT=$HOME/code`.
|
||||
|
||||
## Installation
|
||||
|
||||
Install the `repo` tool and install the shell function. The function changes your current working directory to the resolved directory.
|
||||
|
||||
```sh
|
||||
cargo install
|
||||
eval "$(repo setup --root ~/git)"
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue