From 748840519c59715219cea6cc1404f4a7ba7765ad Mon Sep 17 00:00:00 2001 From: Luke Janssen <91230392+lukejans@users.noreply.github.com> Date: Mon, 26 May 2025 04:22:43 -0400 Subject: [PATCH] Update terminal file icon associations in "FILE_SUFFIX_BY_ICON_KEY" (#31110) This PR updates terminal file icon associations in icon_theme.rs I've added a `bash_login` file as mentioned in the gnu docs for bash startup files. For zsh I updated the startup files to more accurately reflect the zsh startup file documentation such as adding `zlogin` and removing `zsh_profile` in favor of `zprofile`. I also added the default `zsh_history` file that is set on MacOS. Sources: - [bash docs - Bash Startup Files](https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html) - [zsh docs - Startup Files](https://zsh.sourceforge.io/Intro/intro_3.html) Release Notes: - Improved file icon associations in icon_theme.rs to support more shell configuration files --- crates/theme/src/icon_theme.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/theme/src/icon_theme.rs b/crates/theme/src/icon_theme.rs index f68f9933616b34c7217a66395dac180c8a6d4c09..2737170c1eaa2fe27f37cd29979bd55829b2b482 100644 --- a/crates/theme/src/icon_theme.rs +++ b/crates/theme/src/icon_theme.rs @@ -224,6 +224,7 @@ const FILE_SUFFIXES_BY_ICON_KEY: &[(&str, &[&str])] = &[ &[ "bash", "bash_aliases", + "bash_login", "bash_logout", "bash_profile", "bashrc", @@ -233,10 +234,12 @@ const FILE_SUFFIXES_BY_ICON_KEY: &[(&str, &[&str])] = &[ "ps1", "sh", "zlogin", + "zlogout", + "zprofile", "zsh", "zsh_aliases", "zsh_histfile", - "zsh_profile", + "zsh_history", "zshenv", "zshrc", ],