Skip to content

Instantly share code, notes, and snippets.

View hjazz's full-sized avatar
๐Ÿ 
Working from home

jazz-triple hjazz

๐Ÿ 
Working from home
View GitHub Profile
@hjazz
hjazz / gist:8b22668ebc26e5184767
Created January 4, 2016 03:22 — forked from wanybae/gist:4334130
Mac OS X์˜ ํ„ฐ๋ฏธ๋„์—์„œ Sublime Text 2๋ฅผ ์‹คํ–‰ํ•˜๊ธฐ

Mac OS X ํ„ฐ๋ฏธ๋„์—์„œ Sublime Text 2 ์‹คํ–‰ํ•˜๊ธฐ

Sublime Text 2๋Š” subl(์™œ sublime์ด ์•„๋‹Œ์ง€๋Š” ์˜๋ฌธ)์ด๋ผ๋Š” CLI(Command-lime interface)์„ ๊ฐ–๊ณ ์žˆ๋‹ค. ์ด ์œ ํ‹ธ๋ฆฌํ‹ฐ๋Š” ๋””ํดํŠธ๋กœ ์„ค์น˜๋˜๋Š” ๋‹ค์Œ๊ณผ ๊ฐ™์€ ํด๋”์— ์œ„์น˜ํ•œ๋‹ค.

open /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl

์„ค์น˜

๋ฌผ๋ก  ์ € ํด๋”์— ์žˆ๋Š” subl์„ ๋ฐ”๋กœ ์‚ฌ์šฉํ•˜๋ฉด ๋˜๊ฒ ์ง€๋งŒ ํŽธ๋ฆฌํ•˜๊ฒŒ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ๋Š” ๋‘๊ฐ€์ง€ ๋ฐฉ๋ฒ•์„ ์ ์–ด๋ณธ๋‹ค.

# xcode-build-bump.sh
# @desc Auto-increment the build number every time the project is run.
# @usage
# 1. Select: your Target in Xcode
# 2. Select: Build Phases Tab
# 3. Select: Add Build Phase -> Add Run Script
# 4. Paste code below in to new "Run Script" section
# 5. Drag the "Run Script" below "Link Binaries With Libraries"
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0)