Skip to content

Instantly share code, notes, and snippets.

@guillermo
Created May 8, 2012 09:55
Show Gist options
  • Save guillermo/2633942 to your computer and use it in GitHub Desktop.
Save guillermo/2633942 to your computer and use it in GitHub Desktop.
Copy dot files in a faster way than scp
#!/bin/sh
#
# Usage
# copy_dotfiles user@machine
#
FILES=".vim .vimrc .inputrc .gitconfig"
cd $HOME
tar cL $FILES | ssh -C $1 'tar vx'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment