Fix rcp alias

This commit is contained in:
Henrik Lissner 2021-02-17 23:23:06 -05:00
parent d1839427ce
commit 117a417778

View file

@ -24,10 +24,9 @@ alias reboot='sudo reboot'
# A rsync that respects gitignore # A rsync that respects gitignore
rcp() { rcp() {
rsync -azP --delete --delete-after \ rsync -azP --delete --delete-after \
--delete-excluded \ --include=.git/ \
--filter=':- .gitignore' \ --filter=':- .gitignore' \
--exclude-from="$XDG_CONFIG_HOME/git/ignore" \ --filter=":- $XDG_CONFIG_HOME/git/ignore" \
--include=.git \
"$@" "$@"
}; compdef rcp=rsync }; compdef rcp=rsync
rcpd() { rcp "$1/" "$2" } rcpd() { rcp "$1/" "$2" }