From 117a4177789857e780298a90d598c12b6a25ed95 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 17 Feb 2021 23:23:06 -0500 Subject: [PATCH] Fix rcp alias --- config/zsh/aliases.zsh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/config/zsh/aliases.zsh b/config/zsh/aliases.zsh index cf686c87..5a189009 100644 --- a/config/zsh/aliases.zsh +++ b/config/zsh/aliases.zsh @@ -24,10 +24,9 @@ alias reboot='sudo reboot' # A rsync that respects gitignore rcp() { rsync -azP --delete --delete-after \ - --delete-excluded \ + --include=.git/ \ --filter=':- .gitignore' \ - --exclude-from="$XDG_CONFIG_HOME/git/ignore" \ - --include=.git \ + --filter=":- $XDG_CONFIG_HOME/git/ignore" \ "$@" }; compdef rcp=rsync rcpd() { rcp "$1/" "$2" }