Last active
August 29, 2015 14:18
-
-
Save esjay/4317598c8da369e677ed to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Path to your oh-my-zsh installation. | |
export ZSH=$HOME/.oh-my-zsh | |
# ZSH_THEME="robbyrussell" | |
ZSH_THEME="jnrowe" | |
COMPLETION_WAITING_DOTS="true" | |
# oh-my-zsh Plugins | |
plugins=( | |
git | |
git-extras | |
github | |
compleat | |
jsontools | |
python | |
pip | |
virtualenvwrapper | |
npm | |
node | |
brew | |
brew-cask | |
catimg | |
osx | |
terminalapp | |
z | |
ag | |
dircycle | |
per-directory-history | |
web-search | |
zsh-syntax-highlighting | |
) | |
eval "$(gulp --completion=zsh)" | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
export JAVA_HOME=`/usr/libexec/java_home -v 1.6` | |
export M2_HOME=~/Applications/apache-maven/apache-maven-2.2.1 | |
export M2=$M2_HOME/bin | |
# Path configuration | |
path=( | |
/usr/local/share/npm/bin | |
/usr/local/heroku/bin | |
$HOME/.node/bin | |
$HOME/.rvm/bin | |
/usr/local/sbin | |
/usr/local/bin | |
/usr/bin | |
/usr/sbin | |
/bin | |
/sbin | |
/opt/X11/bin | |
$HOME/Development/android-sdk-mac_x86/sdk/platform-tools | |
/Applications/Postgres.app/Contents/Versions/9.4/bin | |
$M2 | |
# $path[@] | |
) | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vim' | |
else | |
export EDITOR='mvim' | |
fi | |
# ssh | |
export SSH_KEY_PATH="~/.ssh/id_rsa" | |
# aliases | |
alias zshconfig="subl ~/.zshrc" | |
alias ohmyzsh="subl ~/.oh-my-zsh" | |
alias mm='bundle exec middleman' | |
alias heroky='heroku' | |
alias pbr='git pull --rebase' | |
alias fixow='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch"' | |
alias jsonme="pbpaste | json | pbcopy" | |
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | printf '=> Public key copied to pasteboard.\n'"; | |
# empower project | |
empower_paths=( | |
core-ui | |
participant-ui | |
liat-ui | |
login-ui | |
ui-style-guide | |
enrollment-ui | |
beneficiary-ui | |
) | |
load_dev_projects() { | |
for_each_dev_project "atom ~/Development/${project_path}" | |
} | |
for_each_dev_project() { | |
echo $1 | |
for (( i = 0; i < ${#empower_paths[@]} ; i++ )) do | |
@project_path=empower_paths[$i] | |
echo $i | |
echo $1 | |
done | |
} | |
# alias empowerme="for (( i = 0; i < ${#empower_paths[@]} ; i++ )); do | |
# eval \"atom ~/Development/${empower_paths[$i]}\" | |
# done" | |
alias mock="(cd build && gulp mock --styles local)" | |
alias proj9="(cd build && gulp dev --env proj9 --styles local)" | |
alias devliat="(cd build && STYLES_ENV=local gulp dev)" | |
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python | |
ZSH_HIGHLIGHT_HIGHLIGHTERS=(main brackets pattern cursor) | |
ZSH_HIGHLIGHT_PATTERNS=('rm -rf *' 'fg=white,bold,bg=red') | |
export HISTSIZE=32768; | |
export HISTFILESIZE=$HISTSIZE; | |
export HISTCONTROL=ignoredups; | |
export HISTIGNORE="ls:cd:cd -:pwd:exit:date:* --help"; | |
# zsh-bd | |
. $HOME/.zsh/plugins/bd/bd.zsh | |
export NVM_DIR="/Users/welgin/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment