From ca53fd2a67a2688f40eb1d5bd15456a4a43012c2 Mon Sep 17 00:00:00 2001 From: Spotlight Date: Wed, 2 Jun 2021 01:34:06 -0500 Subject: [PATCH] Prefer using the latest Swift toolchain --- zshrc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/zshrc b/zshrc index 197e33e..ff1c71d 100644 --- a/zshrc +++ b/zshrc @@ -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