Skip to content

Commit 213b78b

Browse files
committed
fixing ubuntu: part 3
1 parent 331c3a1 commit 213b78b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

roles/zsh/files/zsh/paths_vars.zsh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env zsh
22

3-
addToPath /opt/homebrew/bin
3+
if [ -x $(command -v brew) ]; then
4+
addToPath /opt/homebrew/bin
5+
fi
6+
47
addToPath /usr/local/go/bin
58
addToPath $GOPATH/bin
69
addToPath $HOME/go/bin
@@ -10,4 +13,7 @@ addToPath /opt/whalebrew/bin
1013
addToPathFront $HOME/.local/bin
1114
# ccache
1215
addToPathFront /usr/lib/ccache
13-
addToPathFront /opt/homebrew/opt/ruby/bin
16+
17+
if [ -x $(command -v rbenv) ]; then
18+
addToPathFront /opt/homebrew/opt/ruby/bin
19+
fi

0 commit comments

Comments
 (0)