##Adding Swift Build System
- Open Sublime Text 3
- Go To
Preferences > Browse Packages... - Add a file named
Swift.sublime-buildinsidePackagesdirectory. - Copy the following script in
Swift.sublime-buildfile.
{
"shell_cmd": "xcrun swift $file",
| == | |
| Visual Studio | |
| http://stackoverflow.com/questions/8264323/how-to-compile-a-visual-studio-c-sharp-project-with-mono | |
| apt-get install mono-complete | |
| and run from the command line : | |
| xbuild mysolution.sln | |
| xbuild myproject.csproj |
##Adding Swift Build System
Preferences > Browse Packages...Swift.sublime-build inside Packages directory.Swift.sublime-build file.{
"shell_cmd": "xcrun swift $file",
| # === Terminal.app === # | |
| # Open new tab in terminal. | |
| exec("osascript -e 'tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down' > /dev/null 2>&1 ") | |
| # Open directory | |
| exec("osascript -e 'tell application \"Terminal\" to do script \"cd directory\" in selected tab of the front window' > /dev/null 2>&1 ") | |
| # Open directory in new tab (this is better) | |
| exec("osascript -e 'tell application \"Terminal\"' -e 'tell application \"System Events\" to tell process \"Terminal\" to keystroke \"t\" using command down' -e 'do script with command \"cd directory && clear\" in selected tab of the front window' -e 'end tell' > /dev/null 2>&1") |