This zshrc snippet automatically search for ~/.ssh/known_hosts for hostnames for ssh, scp, and ping command. It requires perl.
compctl -f -k "(
`cat .ssh/known_hosts | perl -lnae '@C=split(",", $F[0]); print for @C'`
)" ssh scp ping
This zshrc snippet automatically search for ~/.ssh/known_hosts for hostnames for ssh, scp, and ping command. It requires perl.
compctl -f -k "(
`cat .ssh/known_hosts | perl -lnae '@C=split(",", $F[0]); print for @C'`
)" ssh scp ping
張貼者:
gugod
位於
4:25 PM
標籤: autocomplete, perl, ssh, zsh
If you know me from somewhere and think I'm helpful to you, please consider donating me by click the following paypal button.
0 意見:
Post a Comment