Skip to content

Commit b84f80c

Browse files
committed
Update paths ordering, add lmstudio to paths
1 parent 505784d commit b84f80c

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

paths

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,24 @@ export KOTLIN_HOME="/usr/local/opt/kotlin/"
1212

1313
# Configure the paths
1414
paths=(
15+
"$HOME/.bin" # User
16+
/opt/homebrew/bin # Homebrew
1517
/usr/local/bin
16-
/usr/local/sbin
1718
"$CARGO_HOME/bin" # Rust
1819
"$JAVA_HOME/bin" # Java
19-
/usr/bin # System
20+
/opt/homebrew/sbin # Homebrew sbin
21+
/usr/local/sbin
22+
/usr/bin # System
23+
/bin
2024
/usr/sbin
2125
/sbin
22-
/opt/homebrew/bin # Homebrew
23-
"$HOME/.bin" # User
26+
"$HOME/.lmstudio/bin" # LM Studio
2427
)
2528

2629
for search_path in "${paths[@]}"; do
2730
[[ -d $search_path ]] \
28-
&& [[ $PATH != *$search_path* ]] \
29-
&& PATH=$search_path:$PATH
31+
&& [[ ":$PATH:" != *":$search_path:"* ]] \
32+
&& PATH=$PATH:$search_path
3033
done
3134

3235
export PATH

0 commit comments

Comments
 (0)