Open terminal and type:
1. Create a directory at ~/bin:
mkdir ~/bin
2. Copy sublime executable to your ~/bin directory:
| // | |
| // UIImage+Retina4.h | |
| // StunOMatic | |
| // | |
| // Created by Benjamin Stahlhood on 9/12/12. | |
| // Copyright (c) 2012 DS Media Labs. All rights reserved. | |
| // | |
| #import <UIKit/UIKit.h> |
| #import <Foundation/Foundation.h> | |
| // clang -g -Wall -fobjc-arc -framework Foundation -o serial serial.m | |
| static id makePlistObjects (void) { | |
| NSMutableDictionary *top = [NSMutableDictionary dictionary]; | |
| [top setObject: @"Hi I'm a string" forKey: @"string"]; | |
| [top setObject: [NSNumber numberWithInt: 23] forKey: @"number"]; |
As configured in my dotfiles.
start new:
tmux
start new with session name:
| #! /bin/sh | |
| # On alternate invocations, this script | |
| # saves the path of the source file currently open in Xcode | |
| # and restores the file at that path in Xcode. | |
| # | |
| # By setting Xcode (in Behaviors) to run this script when "Run Starts" | |
| # and when "Run Completes", you can prevent it from switching to main.m | |
| # when a run finishes. | |
| # See http://stackoverflow.com/questions/7682277/xcode-4-2-jumps-to-main-m-every-time-after-stopping-simulator |