oho my zsh zshrc file for backup and easy access
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh/
# Set name of the theme to load.
ZSH_THEME="bureau"
export TERM=xterm-color
CLICOLOR=1
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
plugins=( git sudo npm osx command-not-found zsh-nvm dotenv ssh-agent)
zstyle :omz:plugins:ssh-agent identities id_rsa-cm id_zerogh
# User configuration
export PATH="$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:$HOME/.rvm/bin:$PATH:/usr/local/opt/go/libexec/bin:$PATH"
export BYOBU_PREFIX=$(brew --prefix)
export NVM_DIR="$HOME/.nvm"
. "$(brew --prefix nvm)/nvm.sh"
source $ZSH/oh-my-zsh.sh
source $HOME/.nvm/nvm.sh
# place this after nvm initialization!
autoload -U add-zsh-hook
load-nvmrc() {
if [[ -f .nvmrc && -r .nvmrc ]]; then
nvm use
elif [[ $(nvm version) != $(nvm version default) ]]; then
echo "Reverting to nvm default version"
nvm use default
fi
}
add-zsh-hook chpwd load-nvmrc
load-nvmrc
# Preferred editor
export EDITOR="nano"
### Aliases ###
alias zshconfig="atom ~/.zshrc"
alias ohmyzsh="atom ~/.oh-my-zsh"
alias showall="defaults write com.apple.finder AppleShowAllFiles YES && killall Finder"
alias hideall="defaults write com.apple.finder AppleShowAllFiles NO && killall Finder"
alias nom="npm"
alias npmG="npm install -g"
alias allUsers="cut -d: -f1 /etc/passwd"
# MySql 5.7
alias mysqlStart="/usr/local/bin/mysql.server start"
alias mysqlStop="/usr/local/bin/mysql.server stop"
# Blink(1) server controls
alias blinkStart="launchctl load -w ./com.thingm.blink1.plist && launchctl start com.thingm.blink1"
alias blinkStop="launchctl stop com.thingm.blink1 && launchctl unload ./com.thingm.blink1.plist"
# TODO outputter
alias todos="leasot"
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
# added by travis gem
[ -f /Users/civil-zero/.travis/travis.sh ] && source /Users/civil-zero/.travis/travis.sh