We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71c5572 commit 6436abdCopy full SHA for 6436abd
dot_bashrc
@@ -1,5 +1,8 @@
1
-if [ -d "$HOME/.local/bin" ] && [ ":$PATH:" != *":$HOME/.local/bin:"* ]; then
2
- export PATH="$HOME/.local/bin:$PATH"
+if [ -d "$HOME/.local/bin" ]; then
+ case ":$PATH:" in
3
+ *":$HOME/.local/bin:"*) ;;
4
+ *) export PATH="$HOME/.local/bin:$PATH" ;;
5
+ esac
6
fi
7
8
# Bun
dot_profile
@@ -1,4 +1,7 @@
. "$HOME/.cargo/env"
0 commit comments