平时自己维护vps和服务器跳来跳去的,机器一多总打ip也麻烦,在这分享下
cat /etc/bashrc
ssh tab自动补全
[ -e ~/.ssh/config ] && complete -o nospace -W “$(perl -ne ‘print "$1 ” if /^Host (.+)$/’ ~/.ssh/config)” ssh
平时自己维护vps和服务器跳来跳去的,机器一多总打ip也麻烦,在这分享下
cat /etc/bashrc
[ -e ~/.ssh/config ] && complete -o nospace -W “$(perl -ne ‘print "$1 ” if /^Host (.+)$/’ ~/.ssh/config)” ssh