Prefer using the latest Swift toolchain

This commit is contained in:
Spotlight 2021-06-02 01:34:06 -05:00
parent 703dc55bd8
commit ca53fd2a67
Signed by: spotlight
GPG key ID: 874AA355B3209BDC

5
zshrc
View file

@ -118,6 +118,11 @@ if [ -d $BREW_PREFIX/lib/haxe ]; then
export HAXE_STD_PATH="$BREW_PREFIX/lib/haxe/std"
fi
# Prefer using the latest Swift toolchain installed if available.
if [ -d /Library/Developer/Toolchains/swift-latest.xctoolchain ]; then
export PATH="/Library/Developer/Toolchains/swift-latest.xctoolchain/usr/bin:$PATH"
fi
# RVM must be last.
if [ -d $HOME/.rvm ]; then
PATH=${PATH}:$HOME/.rvm/bin