mirror of
https://github.com/BurntSushi/ripgrep.git
synced 2025-08-21 07:03:48 -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"]),
|
||||
(&["sh"], &[
|
||||
// Portable/misc. init files
|
||||
".login", ".logout", ".profile", "profile",
|
||||
".env", ".login", ".logout", ".profile", "profile",
|
||||
// bash-specific init files
|
||||
".bash_login", "bash_login",
|
||||
".bash_logout", "bash_logout",
|
||||
@@ -257,7 +257,7 @@ pub(crate) const DEFAULT_TYPES: &[(&[&str], &[&str])] = &[
|
||||
".zprofile", "zprofile",
|
||||
".zshrc", "zshrc",
|
||||
// Extensions
|
||||
"*.bash", "*.csh", "*.ksh", "*.sh", "*.tcsh", "*.zsh",
|
||||
"*.bash", "*.csh", "*.env", "*.ksh", "*.sh", "*.tcsh", "*.zsh",
|
||||
]),
|
||||
(&["slim"], &["*.skim", "*.slim", "*.slime"]),
|
||||
(&["smarty"], &["*.tpl"]),
|
||||
|
Reference in New Issue
Block a user