Skip to content

Instantly share code, notes, and snippets.

@numist
Created June 9, 2014 15:55
Show Gist options
  • Select an option

  • Save numist/362cb39257019703fc1e to your computer and use it in GitHub Desktop.

Select an option

Save numist/362cb39257019703fc1e to your computer and use it in GitHub Desktop.
A function for your fish configuration to run the Swift REPL without making Xcode6-beta your default toolchain.
function swift
set developer_dir $DEVELOPER_DIR
set -x DEVELOPER_DIR /Applications/Xcode6-Beta.app/Contents/Developer/
xcrun swift
if echo $developer_dir | grep "/"
set -x DEVELOPER_DIR $developer_dir
else
set -e DEVELOPER_DIR
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment