mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-21 23:23:47 -07:00
ignore/types: add .env
to sh
file type
`.env` or "dotenv" is used quite often in cross-compilation/embedded development environments to load environment variables, define shell functions or even to execute shell commands. Just like `.zshenv` in this list, I think `.env` should also be added here. Closes #3063
This commit is contained in:
committed by
Andrew Gallant
parent
8ab9b6aba8
commit
0db9903c8d
@@ -238,7 +238,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
|
|||||||
(&["seed7"], &["*.sd7", "*.s7i"]),
|
(&["seed7"], &["*.sd7", "*.s7i"]),
|
||||||
(&["sh"], &[
|
(&["sh"], &[
|
||||||
// Portable/misc. init files
|
// Portable/misc. init files
|
||||||
".login", ".logout", ".profile", "profile",
|
".env", ".login", ".logout", ".profile", "profile",
|
||||||
// bash-specific init files
|
// bash-specific init files
|
||||||
".bash_login", "bash_login",
|
".bash_login", "bash_login",
|
||||||
".bash_logout", "bash_logout",
|
".bash_logout", "bash_logout",
|
||||||
@@ -257,7 +257,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
|
|||||||
".zprofile", "zprofile",
|
".zprofile", "zprofile",
|
||||||
".zshrc", "zshrc",
|
".zshrc", "zshrc",
|
||||||
// Extensions
|
// Extensions
|
||||||
"*.bash", "*.csh", "*.ksh", "*.sh", "*.tcsh", "*.zsh",
|
"*.bash", "*.csh", "*.env", "*.ksh", "*.sh", "*.tcsh", "*.zsh",
|
||||||
]),
|
]),
|
||||||
(&["slim"], &["*.skim", "*.slim", "*.slime"]),
|
(&["slim"], &["*.skim", "*.slim", "*.slime"]),
|
||||||
(&["smarty"], &["*.tpl"]),
|
(&["smarty"], &["*.tpl"]),
|
||||||
|
Reference in New Issue
Block a user