Created
May 8, 2012 09:55
-
-
Save guillermo/2633942 to your computer and use it in GitHub Desktop.
Copy dot files in a faster way than scp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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