4 releases
| 0.1.3 | Aug 5, 2023 |
|---|---|
| 0.1.2 | Jan 12, 2022 |
| 0.1.1 | Jan 2, 2022 |
| 0.1.0 | Jan 2, 2022 |
#1190 in Development tools
32KB
741 lines
Simple slip command (git clone runner to better categorize personal repos and work repos).
example config file
# ~/.slip.toml
default = "Work"
[work]
# root directory to clone for work related projects
root = "/home/cedric05/projects/work"
[work.git]
email = "some_email@company.com"
name = "name"
[personal]
# root directory to clone for personal related projects
root = "/home/cedric05/projects/personal/"
[personal.git]
email = "some_email@hotmail.com"
name = "name"
Install
cargo install slip_git
commands
List
lists all cloned repos
example: slip list
Add
adds repo to slip repolist config file
example: slip add /home/user/projects/cloned-git-directory
Reconfig
Reconfigures all git repos with correct email and name
example: slip reconfig
Ui
Creats terminal UI (filters, select...) for opening in vscode
example: slip ui
Clone
slip clone git@github.com/gitignore/gitgnore
with default configuration, it will create a repository in
/home/<username>/projects/work/<gitignore>/gitignore
slip -p clone git@github.com/microsoft/vscode
it will create a repository in
/home/<username>/projects/personal/<gitignore>/gitignore
create file ~/.slip.toml to better configure directories.
CHANGELOG
0.1.3
- new command
slip addadds already git cloned directory to slip slip uinow default command when no command is sentslip uinew selected directory viaenteropens shell inplace of previous action `opening vscode``slip uinew selected directory changedopening vscodeaction toinsertkeycode
Dependencies
~7–16MB
~194K SLoC