From 7977fe7ee15a3fea188bfc272c027b8b63d04e5a Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 9 Apr 2022 07:08:19 -0700 Subject: [PATCH] config: watch the directory containing the wezterm.lua too refs: #1697 --- config/src/lib.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/src/lib.rs b/config/src/lib.rs index 81eebd633..95e331275 100644 --- a/config/src/lib.rs +++ b/config/src/lib.rs @@ -481,6 +481,11 @@ impl ConfigInner { let mut watch_paths = vec![]; if let Some(path) = file_name { + // Let's also watch the parent directory for folks that do + // things with symlinks: + if let Some(parent) = path.parent() { + watch_paths.push(parent.to_path_buf()); + } watch_paths.push(path); }