add Xcode path at the end
This commit is contained in:
parent
c0e7772672
commit
a403a83334
1 changed files with 4 additions and 1 deletions
5
zshenv
5
zshenv
|
|
@ -1,9 +1,12 @@
|
|||
custom_paths=(/sbin /usr/sbin $HOME/bin $HOME/.rbenv/bin /usr/local/android/tools /usr/local/android/platform-tools /Applications/Xcode.app/Contents/Developer/usr/bin)
|
||||
custom_paths=(/sbin /usr/sbin $HOME/bin $HOME/.rbenv/bin /usr/local/android/tools /usr/local/android/platform-tools)
|
||||
for dir in $custom_paths; do
|
||||
if [[ -d "$dir" ]]; then
|
||||
path=($dir $path)
|
||||
fi
|
||||
done
|
||||
if [[ -d /Applications/Xcode.app/Contents/Developer/usr/bin ]]; then
|
||||
path=($path /Applications/Xcode.app/Contents/Developer/usr/bin)
|
||||
fi
|
||||
export path
|
||||
typeset -U path
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue