Skip to content

Instantly share code, notes, and snippets.

@eltonlaw
Created February 15, 2018 20:44
Show Gist options
  • Save eltonlaw/e6fb84b3d5606d6492fb92f6313b1bcb to your computer and use it in GitHub Desktop.
Save eltonlaw/e6fb84b3d5606d6492fb92f6313b1bcb to your computer and use it in GitHub Desktop.
SSH_ID=$1
if [ -z "$SSH_ID" ]; then
echo "Error: No ssh config passed."
else
rsync ~/.tmux.conf $SSH_ID:~/.tmux.conf
rsync ~/.vimrc $SSH_ID:~/.vimrc
rsync -avr ~/.vim/ $SSH_ID:~/.vim/
rsync -avr ~/.tmux/ $SSH_ID:~/.tmux/
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment