From 4c77d0509a2505a16be89fe33e30e1d6d2c45081 Mon Sep 17 00:00:00 2001 From: "Paul Gauthier (aider)" Date: Sat, 7 Dec 2024 07:54:20 -0800 Subject: [PATCH] feat: add shell dotfile extensions to source file detection --- aider/watch.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/aider/watch.py b/aider/watch.py index 03e956191..82285ccef 100644 --- a/aider/watch.py +++ b/aider/watch.py @@ -10,7 +10,6 @@ from watchfiles import watch from aider.dump import dump # noqa -# add .zsh, .zshrc. and the various dotfiles for bash, etc ai! def is_source_file(path: Path) -> bool: """ Check if a file is a source file that uses # or // style comments. @@ -25,6 +24,16 @@ def is_source_file(path: Path) -> bool: ".pm", ".sh", ".bash", + ".zsh", + ".bashrc", + ".bash_profile", + ".bash_login", + ".bash_logout", + ".zshrc", + ".zprofile", + ".zlogin", + ".zlogout", + ".profile", ".yaml", ".yml", # // style comments