From 06210b382a4628258680cfdda07d5ed73a88b046 Mon Sep 17 00:00:00 2001 From: "Lilian A. Moraru" Date: Fri, 6 Jun 2025 12:58:07 +0300 Subject: [PATCH] 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 --- crates/ignore/src/default_types.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/ignore/src/default_types.rs b/crates/ignore/src/default_types.rs index 3d0ac64b..b4de4b9c 100644 --- a/crates/ignore/src/default_types.rs +++ b/crates/ignore/src/default_types.rs @@ -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"]),