Created
June 9, 2014 15:55
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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