2 ms·
I haven't tested it yet, but the tip from https://news.ycombinator.com/item?id=32468605 https://news.ycombinator.com/item?id=32468605 seem neat: (automatically
by olejorgenb 4y ago
I haven't tested it yet, but the tip from https://news.ycombinator.com/item?id=32468605 https://news.ycombinator.com/item?id=32468605 seem neat: (automatically copy config files on connect)
Match Host 192.168.123.*,another-example.org,*.example.com User myusername,myotherusername
ForwardAgent yes
PermitLocalCommand yes
LocalCommand rsync -L --exclude .netrwhist --exclude .git --exclude .config/iterm2/AppSupport/ --exclude .vim/bundle/youcompleteme/ -vRrlptze "ssh -o PermitLocalCommand=no" %d/./.screenrc %d/./.gitignore %d/./.bash_profile %d/./.ssh/git_ed25519.pub %d/./.ssh/authorized_keys %d/./.vimrc %d/./.zshrc %d/./.config/iterm2/ %d/./.vim/ %d/./bin/ %d/./.bash/ %r@%n:/home/%r