diff options
| author | Franck Cuny <franck@lumberjaph.net> | 2015-07-06 11:46:36 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@lumberjaph.net> | 2015-07-06 11:46:36 -0700 |
| commit | 3d10fafdfc888b43d91aebf45cb6022f4f3c3203 (patch) | |
| tree | 61bd8c8475beaa5f86f2e78d1e4d3b7ea625eb84 /bin/sync-shell-files | |
| parent | create repository (diff) | |
| download | emacs.d-3d10fafdfc888b43d91aebf45cb6022f4f3c3203.tar.gz | |
configuration files
Diffstat (limited to 'bin/sync-shell-files')
| -rwxr-xr-x | bin/sync-shell-files | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/bin/sync-shell-files b/bin/sync-shell-files new file mode 100755 index 0000000..dca1262 --- /dev/null +++ b/bin/sync-shell-files @@ -0,0 +1,15 @@ +#!/bin/bash + +to_host="$1" + +if [[ -z "${to_host}" ]]; then + echo "usage: $0 <host>" + exit 1 +fi + +files="inputrc gitconfig" +for file in $files; do + rsync -avz --delete "${HOME}/src/dotfiles/${file}" "${to_host}:.${file}" +done + +[ -f "${HOME}/.gitconfig.private" ] && rsync -avz --delete "${HOME}/.gitconfig.private" "${to_host}:" |
