Skip to content

Commit

Permalink
feat: identify direnv files as Bash
Browse files Browse the repository at this point in the history
[direnv](https://direnv.net) loads files with these names into bash
subshells.
  • Loading branch information
nicknovitski committed Nov 20, 2024
1 parent 6fd6f6b commit d2f995a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions identify/extensions.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@
'.csslintrc': EXTENSIONS['json'] | {'csslintrc'},
'.dockerignore': {'text', 'dockerignore'},
'.editorconfig': {'text', 'editorconfig'},
'.envrc': EXTENSIONS['bash'],
'.flake8': EXTENSIONS['ini'] | {'flake8'},
'.gitattributes': {'text', 'gitattributes'},
'.gitconfig': EXTENSIONS['ini'] | {'gitconfig'},
Expand Down Expand Up @@ -354,6 +355,7 @@
'copy.bara.sky': EXTENSIONS['bzl'],
'COPYING': EXTENSIONS['txt'],
'Dockerfile': {'text', 'dockerfile'},
'direnvrc': EXTENSIONS['bash'],
'Gemfile': EXTENSIONS['rb'],
'Gemfile.lock': {'text'},
'GNUmakefile': EXTENSIONS['mk'],
Expand Down

0 comments on commit d2f995a

Please sign in to comment.