Skip to content

Instantly share code, notes, and snippets.

@mortik
Created May 23, 2013 22:12
Show Gist options
  • Save mortik/5639883 to your computer and use it in GitHub Desktop.
Save mortik/5639883 to your computer and use it in GitHub Desktop.
Sync dotfiles to server
function scp-dotfiles () {
if [ -z "$1" ]; then
return
fi
echo -n $'syncing files to '
echo -n `set_color $RED_COLOR`
echo -n $1
echo `set_color $DEFAULT_COLOR`
scp ~/.dot-files/.srv_bashrc $1:~/.bashrc
scp ~/.dot-files/.srv_bash_aliases $1:~/.bash_aliases
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment