title | date | tags | ||||||
---|---|---|---|---|---|---|---|---|
Driving Git Repository with ghq and peco |
2019-07-09 23:00:00 +0900 |
|
Drive your git repository with incremental filtering!
You will install ghq and peco by Homebrew.
brew install ghq
brew install peco
Set function like this:
# .bashrc or something
function peco-g() {
local repo=$(ghq list --full-path | peco)
if [[ $repo ]]; then
cd $repo
fi
}
And you can now:
ghq get https://github.com/kodaka/jekyll_tiny_tag
peco-g
Happy driving!
By the way, I like to:
# .bashrc or something
function cd() {
builtin cd "$@" && pwd
}