Skip to content

Commit

Permalink
Ignore *.swp files by default
Browse files Browse the repository at this point in the history
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
  • Loading branch information
leymannx authored Feb 1, 2018
1 parent eda0706 commit bc4c9f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sync.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc4c9f2

Please sign in to comment.