summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2024-12-31 11:17:42 +0200
committerSyndamia <kamen@syndamia.com>2024-12-31 11:17:42 +0200
commit605c0c7fb25e64278554376bb433c4fae0778a3c (patch)
tree8d50a5a491f6dc5b012ac18179be1201dbd7e0dc
parentd790867f0701e861762310aaa93736e0c030c4fa (diff)
downloaddotfiles-605c0c7fb25e64278554376bb433c4fae0778a3c.tar
dotfiles-605c0c7fb25e64278554376bb433c4fae0778a3c.tar.gz
dotfiles-605c0c7fb25e64278554376bb433c4fae0778a3c.zip
fix(bash): Remove shell_var_fix in a more capable way
-rw-r--r--.bashrc2
1 files changed, 1 insertions, 1 deletions
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