From 605c0c7fb25e64278554376bb433c4fae0778a3c Mon Sep 17 00:00:00 2001 From: Syndamia Date: Tue, 31 Dec 2024 11:17:42 +0200 Subject: fix(bash): Remove shell_var_fix in a more capable way --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index b3029db..d52ef93 100644 --- a/.bashrc +++ b/.bashrc @@ -17,7 +17,7 @@ shell_var_fix() { fi # Don't ever run this function again - export PROMPT_COMMAND="${PROMPT_COMMAND#shell_var_fix;}" + export PROMPT_COMMAND="${PROMPT_COMMAND/shell_var_fix;/}" unset -f shell_var_fix } # This has a second purpose, to reset PROMPT_COMMAND, since subshells would -- cgit v1.2.3