peco Tips Series — Multi-hop ssh + peco, ghq + peco + atom
Overview
These really are just small tips.
But after using them I got feedback that they shorten work time quite a bit and are handy,
so I put together an article on the peco-related tricks I use most often.
Installing peco
1 | macOS %$ brew install peco |
Search for an ssh login Host and select it
As a prerequisite, I manage my connection hosts in ~/.ssh/config.
Paste the above into something like ~/.bashrc, run source ~/.bashrc, and you’re good to go ♪
1 | macOS %$ git clone https://gist.github.com/kenzo0107/06b3b1e202f36b70815cfe0207292a66 |
When things go smoothly as shown above, the candidates are listed.
Sorry that it’s all mosaic (>_<)
Search for a repository managed by ghq, select it, and open it in atom
Same as before,
1 | macOS %$ git clone https://gist.github.com/kenzo0107/e460e31ae2478341cc7a39859ad7fefd |
I use peco in many other places as well.
If you have a “here’s a great use for peco” tip, please let me know ♪
References
It’s zsh, but I’ve collected my dotfiles here.
GitHub - kenzo0107/dotfiles: dotfile setting
dotfile setting. Contribute to kenzo0107/dotfiles development by creating an account on GitHub.
peco Tips Series — Multi-hop ssh + peco, ghq + peco + atom
