mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +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
|
from aider.dump import dump # noqa
|
||||||
|
|
||||||
# add .zsh, .zshrc. and the various dotfiles for bash, etc ai!
|
|
||||||
def is_source_file(path: Path) -> bool:
|
def is_source_file(path: Path) -> bool:
|
||||||
"""
|
"""
|
||||||
Check if a file is a source file that uses # or // style comments.
|
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",
|
".pm",
|
||||||
".sh",
|
".sh",
|
||||||
".bash",
|
".bash",
|
||||||
|
".zsh",
|
||||||
|
".bashrc",
|
||||||
|
".bash_profile",
|
||||||
|
".bash_login",
|
||||||
|
".bash_logout",
|
||||||
|
".zshrc",
|
||||||
|
".zprofile",
|
||||||
|
".zlogin",
|
||||||
|
".zlogout",
|
||||||
|
".profile",
|
||||||
".yaml",
|
".yaml",
|
||||||
".yml",
|
".yml",
|
||||||
# // style comments
|
# // style comments
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue