Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 390 Bytes

README.md

File metadata and controls

20 lines (13 loc) · 390 Bytes

srcpath

srcpath provides go import style folder structure to your git clones

gclone https://github.com/jhaals/yopass places the checkout in ~/src/github.com/jhaals/yopass

Install

Run go build -o srcpath. Put it in your $PATH.

Add function .bashrc/.zshrc

function gclone {
    git clone $1 $(srcpath $1)
}

You can set your own base checkout folder with -src