Last active
September 19, 2016 11:08
-
-
Save evgenyneu/81ac1ac01b7ffdcbbd58 to your computer and use it in GitHub Desktop.
Empty Swift file template script
This file contains 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
#!/bin/bash | |
# | |
# This script makes an empty Swift file template. | |
# | |
# Usage: | |
# | |
# sudo ./change_xcode_template | |
# | |
# or specify the Xcode app name | |
# | |
# sudo ./change_xcode_template Xcode.app | |
# | |
xcodeapp=${1:-Xcode.app} | |
swiftfile="/Applications/$xcodeapp/Contents/Developer/Library/Xcode/Templates/File Templates/Source/Swift File.xctemplate/___FILEBASENAME___.swift" | |
echo "" > "$swiftfile" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment