Skip to content

Commit 83da314

Browse files
committed
Use rsync instead of cp
1 parent deedcca commit 83da314

File tree

1 file changed

+12
-20
lines changed

1 file changed

+12
-20
lines changed

copy-here.sh

+12-20
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
11
#! zsh
2-
#diff ~/.aliases .aliases
3-
#diff ~/.emacs.d/init.el .emacs.d
4-
#diff ~/.gitconfig .gitconfig
5-
#diff ~/.gitignore_global .gitignore_global
6-
#diff ~/.zprofile .zprofile
7-
#diff ~/.zshenv .zshenv
8-
#diff ~/.zshrc .zshrc
9-
#read -s -k '?Press enter to continue.'
10-
cp -v ~/.zshenv .
11-
cp -v ~/.zprofile .
12-
cp -v ~/.zshrc .
13-
cp -v ~/.zlogin .
14-
cp -v ~/.aliases .
15-
# do NOT copy .uhg-zshrc
16-
cp -v ~/.emacs.d/init.el .emacs.d
17-
cp -v -R ~/.emacs.d/el .emacs.d
18-
cp -v -R ~/.emacs.d/elpa .emacs.d
19-
cp -v ~/.gitconfig .
20-
cp -v ~/.gitignore_global .
21-
#cp -v -R /opt/usrbin/* ./opt/usrbin
2+
3+
# NOTE: do NOT copy .*-uhg
4+
rsync --out-format="%f" --update ~/.zshenv .
5+
rsync --out-format="%f" --update ~/.zprofile .
6+
rsync --out-format="%f" --update ~/.zshrc .
7+
rsync --out-format="%f" --update ~/.zlogin .
8+
rsync --out-format="%f" --update ~/.aliases .
9+
rsync --out-format="%f" --update ~/.gitconfig .
10+
rsync --out-format="%f" --update ~/.gitignore_global .
11+
rsync --out-format="%f" --update ~/.emacs.d/init.el .emacs.d
12+
rsync --delete --out-format="%f" --update --recursive ~/.emacs.d/el .emacs.d
13+
rsync --delete --out-format="%f" --update --recursive ~/.emacs.d/elpa .emacs.d

0 commit comments

Comments
 (0)