From bc4c9f2f3bf3f2cba256292b8045f4e4ba02058a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20K=C3=A4mper-Leymann?= Date: Thu, 1 Feb 2018 23:30:48 +0100 Subject: [PATCH] Ignore *.swp files by default Having set `SYNC_PREFER=newer` a lot of *.swp files tend to appear on the host volume after you edit a file inside the container. Let's exclude them by default. Referring Stack question and answer: https://superuser.com/questions/569176/how-to-make-unison-ignore-all-files-with-swp-extension --- sync.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/sync.sh b/sync.sh index 689d07f..b43fd31 100755 --- a/sync.sh +++ b/sync.sh @@ -159,6 +159,7 @@ silent=$unisonsilent ignore = Path .git/* ignore = Path .idea/* ignore = Name *___jb_tmp___* +ignore = Name {.*,*}.sw[pon] # Additional user configuration $SYNC_EXTRA_UNISON_PROFILE_OPTS