A ZSH theme optimized for people who use:
- Solarized
- Git
- Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)
For Mac users, I highly recommend iTerm 2 + Solarized Dark
curl -o .gitignore https://github.com/github/gitignore/raw/master/Objective-C.gitignore |
## Prepare ################################################################### | |
# Remove RVM | |
rvm implode | |
# Ensure your homebrew is working properly and up to date | |
brew doctor | |
brew update | |
## Install ################################################################### |
/* | |
Distributed under The MIT License: | |
http://opensource.org/licenses/mit-license.php | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to |
# treats your Xcode project file as a binary; prevents Git from trying to fix newlines, show in diffs, and excludes from merges | |
*.pbxproj -crlf -diff -merge |
# Mac OS X Finder and whatnot | |
.DS_Store | |
# Sparkle distribution Private Key (Don't check me in!) | |
dsa_priv.pem | |
# XCode (and ancestors) per-user config (very noisy, and not relevant) | |
*.mode1 | |
*.mode1v3 | |
*.mode2v3 |
// | |
// Copyright (c) 2012-2015 Cédric Luthi / @0xced. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#if TARGET_OS_SIMULATOR | |
static const char *fakeCarrier; | |
static const char *fakeTime; |
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
+ (MyObject *)sharedInstance | |
{ | |
static MyObject *instance; | |
static dispatch_once_t onceToken; | |
if (instance==nil) { | |
dispatch_once(&onceToken, ^{ | |
instance = [[MyObject alloc] init]; | |
}); | |
} |
alias subadd="svn st | grep '^?' | sed 's/^? *\(.*\)/\"\1\"/g' | sed 's/@\(.*\)/@\1@/g' | xargs svn add" | |
alias subrm="svn st | grep '^!' | sed 's/^! *\(.*\)/\"\1\"/g' | sed 's/@\(.*\)/@\1@/g' | xargs svn rm" | |
alias subst='svn st' | |
alias subci='svn ci' | |
alias subup='svn up' |