mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
feat: add shell dotfile extensions to source file detection
This commit is contained in:
parent
33d77f4355
commit
4c77d0509a
1 changed files with 10 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue