mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 10:12:17 +02:00
Implement auto reload of config
This commit is contained in:
@@ -27,7 +27,9 @@ func watch_dirs(ctx context.Context, paths []string, debounce time.Duration, eve
|
||||
fswatcher.WithCooldown(debounce),
|
||||
}
|
||||
for _, path := range paths {
|
||||
opts = append(opts, fswatcher.WithPath(path))
|
||||
if unix.Access(path, unix.R_OK|unix.X_OK) == nil {
|
||||
opts = append(opts, fswatcher.WithPath(path))
|
||||
}
|
||||
}
|
||||
w, err := fswatcher.New(opts...)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user