Clone missing repositories, sync existing ones
knoch bundle
Clone the repository, add it to .knoch
knoch add <REPO/DIR> [<DIR>]
Remove the repository, remove it from .knoch
knoch remove <DIR>
List tracked repositories
knoch remove <DIR>
Open the selected project in $EDITOR
knoch open <DIR>
Show full path of selected project
knoch show <DIR>
Output help for everything
knoch help
Unfortunately, due to limitations of how - well, I guess how system calls work, this program cannot change directories for you. However, you can create a bash command that can do it for you pretty easily:
# Add this into your .*_profile or .*rc
knoch-cd() {
cd $(knoch show $1)
}
# If you're on Zsh, this is how you add command completion:
_knoch-cd() {
_arguments '*:projects:_values $(knoch ls --name-only)'
}
compdef _knoch-cd knoch-cd