Skip to content

Instantly share code, notes, and snippets.

View embryoconcepts's full-sized avatar

Jen Hamilton embryoconcepts

View GitHub Profile
KEYWORDS="TODO:|FIXME:"
find "." \( -name "*.h" -or -name "*.m" -or -name "*.swift" \) -not -path "./Pods/*" -print0 |
xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" |
perl -p -e "s/($KEYWORDS)/ warning: \$1/"
# EDITOR
export EDITOR='subl' -w
# EDITOR
export EDITOR='subl -w'
{
“save_on_focus_lost”: true
}
alias gnb="git checkout -b $*"
alias gnbf=gitNewBranchFeature
alias gnbt=gitNewBranchTest
alias gnbs=gitNewBranchSupport
# FUNCTIONS
NOW=$(date +"%Y-%m-%d")
NAME="yournamehere"
gitNewBranchFeature() {
# THEME
# - Powerlevel9k AwesomeFont selection (must call before sourcing)
POWERLEVEL9K_MODE='awesome-fontconfig'
# - Source Prezto
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
#
# Executes commands at login pre-zshrc.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# Browser
#
#
# Sets Prezto options.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
#
# General
#
alias gnb=newBranch
# FUNCTIONS
newBranch() {
NOW=$(date +"%Y%m%d")
NAME="username"
TYPE=""
BRANCH=""
TICKET=""
@embryoconcepts
embryoconcepts / .gitconfig
Created May 19, 2018 02:36
example .gitconfig file
[user]
[alias]
co = checkout
hist = log --pretty=format:\"%h %ad | %s%d [%an]\" --graph --date=short
[push]
default = simple
[core]
excludesfile = /Users/{user}/.gitignore_global
[credential]
helper = osxkeychain