We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 505784d commit b84f80cCopy full SHA for b84f80c
1 file changed
paths
@@ -12,21 +12,24 @@ export KOTLIN_HOME="/usr/local/opt/kotlin/"
12
13
# Configure the paths
14
paths=(
15
+ "$HOME/.bin" # User
16
+ /opt/homebrew/bin # Homebrew
17
/usr/local/bin
- /usr/local/sbin
18
"$CARGO_HOME/bin" # Rust
19
"$JAVA_HOME/bin" # Java
- /usr/bin # System
20
+ /opt/homebrew/sbin # Homebrew sbin
21
+ /usr/local/sbin
22
+ /usr/bin # System
23
+ /bin
24
/usr/sbin
25
/sbin
- /opt/homebrew/bin # Homebrew
- "$HOME/.bin" # User
26
+ "$HOME/.lmstudio/bin" # LM Studio
27
)
28
29
for search_path in "${paths[@]}"; do
30
[[ -d $search_path ]] \
- && [[ $PATH != *$search_path* ]] \
- && PATH=$search_path:$PATH
31
+ && [[ ":$PATH:" != *":$search_path:"* ]] \
32
+ && PATH=$PATH:$search_path
33
done
34
35
export PATH
0 commit comments