Skip to content

Instantly share code, notes, and snippets.

@evgenyneu
Last active September 19, 2016 11:08
Show Gist options
  • Save evgenyneu/81ac1ac01b7ffdcbbd58 to your computer and use it in GitHub Desktop.
Save evgenyneu/81ac1ac01b7ffdcbbd58 to your computer and use it in GitHub Desktop.
Empty Swift file template script
#!/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