Skip to content

Instantly share code, notes, and snippets.

@hayduke19us
Created December 22, 2015 04:29
Show Gist options
  • Save hayduke19us/e1be15b5e48985a59212 to your computer and use it in GitHub Desktop.
Save hayduke19us/e1be15b5e48985a59212 to your computer and use it in GitHub Desktop.
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Editor
export EDITOR=/usr/local/bin/vim
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="xiong-chiamiov"
# Set tmux in 256 color mode (make vim look better)
alias tmux='TERM=xterm-256color tmux'
alias git='nocorrect hub'
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable bi-weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment to change how often before auto-updates occur? (in days)
# export UPDATE_ZSH_DAYS=13
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Uncomment following line if you want to disable command autocorrection
# DISABLE_CORRECTION="true"
# Uncomment following line if you want red dots to be displayed while waiting for completion
# COMPLETION_WAITING_DOTS="true"
# Uncomment following line if you want to disable marking untracked files under
# VCS as dirty. This makes repository status check for large repositories much,
# much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(rails git git-extras ruby web-search)
# Set xcode, homebrew & mysql paths
export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/Applications/Postgres.app:$HOME/bin:$HOME/code/bork/bin:$PATH
# Postgres app
export PATH=$PATH:/Applications/Postgres.app/Contents/Versions/9.4/bin
# Added by the Heroku Toolbelt
export PATH=/usr/local/heroku/bin:$PATH
source $ZSH/oh-my-zsh.sh
# rbenv
# use Homebrew's directories instead of ~/.rbenv
export RBENV_ROOT=/usr/local/var/rbenv
# enable shims and autocompletion for .rbenv
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi
# alias for tmuxinator
alias mux="tmuxinator"
# alias for bork cli.sh and gem file
alias cli_run="cd && bork satisfy code/dotfiles/install/cli.sh"
alias cli_check="cd && bork status code/dotfiles/install/cli.sh"
alias gem_run="cd && bork satisfy code/dotfiles/install/gem.sh"
alias gem_check="cd && bork satisfy code/dotfiles/install/gem.sh"
# dont allow tmux to rename my windows
export DISABLE_AUTO_TITLE="true"
# papertrail alias
alias pt="papertrail"
# color papertrail alias
alias colorpaper="papertrail -f -d 5 | colortail -g papertrail"
# ack color alias
alias ack="ack --color-filename=Green"
# source .zshrc
alias reload=". ~/.zshrc && echo 'reloaded .zshrc'"
# Configure Git
export GIT_MERGE_AUTOEDIT=no
# Mysql
# Connect with version arg
# brew services is a small wrapper around `launchctl` for supported formulae
connect_to_mysql () {
/usr/local/opt/mysql$1/bin/mysql -uroot
}
alias mysql_connect=connect_to_mysql
# Start
start_mysql_server () {
brew services start mysql$1
}
alias mysql_start=start_mysql_server
# Stop
stop_mysql_server () {
brew services stop mysql$1
}
alias mysql_stop=stop_mysql_server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment