summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pywal/export.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pywal/export.py b/pywal/export.py
index fb284bd..4139cb7 100644
--- a/pywal/export.py
+++ b/pywal/export.py
@@ -70,7 +70,7 @@ def every(colors, output_dir=CACHE_DIR):
join = os.path.join # Minor optimization.
for file in [*os.scandir(template_dir),
*os.scandir(template_dir_user)]:
- if file.name != ".DS_Store":
+ if file.name != ".DS_Store" and not file.name.endswith(".swp"):
template(colors, file.path, join(output_dir, file.name))
logging.info("Exported all files.")