From 7b5563cd007edf26bc17f07e6cddabacad451e00 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Thu, 1 Aug 2024 03:21:21 -0500 Subject: [PATCH] fix: ignore PROMPT_DIRTRIM in diffing logic --- src/env_diff.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/env_diff.rs b/src/env_diff.rs index d9b5ee312..336f47662 100644 --- a/src/env_diff.rs +++ b/src/env_diff.rs @@ -170,6 +170,7 @@ fn valid_key(k: &str) -> bool { || k == "SHELLOPTS" || k == "COMP_WORDBREAKS" || k == "PS1" + || k == "PROMPT_DIRTRIM" // following two ignores are for exported bash functions and exported bash // functions which are multiline, they appear in the environment as e.g.: // BASH_FUNC_exported-bash-function%%=() { echo "this is an"