Skip to content

Commit d2f995a

Browse files
committed
feat: identify direnv files as Bash
[direnv](https://direnv.net) loads files with these names into bash subshells.
1 parent 6fd6f6b commit d2f995a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

identify/extensions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@
319319
'.csslintrc': EXTENSIONS['json'] | {'csslintrc'},
320320
'.dockerignore': {'text', 'dockerignore'},
321321
'.editorconfig': {'text', 'editorconfig'},
322+
'.envrc': EXTENSIONS['bash'],
322323
'.flake8': EXTENSIONS['ini'] | {'flake8'},
323324
'.gitattributes': {'text', 'gitattributes'},
324325
'.gitconfig': EXTENSIONS['ini'] | {'gitconfig'},
@@ -354,6 +355,7 @@
354355
'copy.bara.sky': EXTENSIONS['bzl'],
355356
'COPYING': EXTENSIONS['txt'],
356357
'Dockerfile': {'text', 'dockerfile'},
358+
'direnvrc': EXTENSIONS['bash'],
357359
'Gemfile': EXTENSIONS['rb'],
358360
'Gemfile.lock': {'text'},
359361
'GNUmakefile': EXTENSIONS['mk'],

0 commit comments

Comments
 (0)