Skip to content

Instantly share code, notes, and snippets.

@mdlima
Created October 27, 2015 20:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdlima/b0a32571c52574af721a to your computer and use it in GitHub Desktop.
Save mdlima/b0a32571c52574af721a to your computer and use it in GitHub Desktop.
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# 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="robbyrussell"
# Example aliases
alias zshconfig="mate ~/.zshrc"
alias ohmyzsh="mate ~/.oh-my-zsh"
alias pryr="pry -r ./config/environment -r rails/console/app -r rails/console/helpers"
_gct(){ git checkout `git branch -r -a | grep $1 | grep remotes | head -n 1 | sed 's/remotes\/origin\///'` };
alias gct=_gct
alias gcr='git diff `git merge-base \`git rev-parse --abbrev-ref HEAD\` master` `git rev-parse --abbrev-ref HEAD` | mate'
alias nginx-stop='sudo nginx -s stop'
alias fpm-restart='launchctl unload ~/Library/LaunchAgents/homebrew.mxcl.php54.plist; launchctl load ~/Library/LaunchAgents/homebrew.mxcl.php54.plist'
alias php-fpm-restart="fpm-restart"
export EVINO_PROJECT_PATH="/Users/mdlima/Projects/evino/red_br"
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# If you would like oh-my-zsh to automatically update itself without prompting you, set the following in your ~/.zshrc
DISABLE_UPDATE_PROMPT="true"
# 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 red dots to be displayed while waiting for completion
COMPLETION_WAITING_DOTS="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=(brew git github git-extras heroku mdlima powder rails rvm osx textmate vagrant encode64 jsontools node npm)
plugins=(brew git heroku rvm)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=/usr/local/bin:/usr/local/sbin:/usr/local/git/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin:/usr/texbin:$PATH
# export PATH=/usr/local/share/python:/usr/local/lib/wxPython/bin:$PATH
# export PATH="/Applications/Postgres.app/Contents/MacOS/bin:$PATH"
export CPLUS_INCLUDE_PATH="/usr/local/include:$CPLUS_INCLUDE_PATH"
# export PYTHONPATH="/usr/local/lib/python2.7/site-packages:/usr/local/lib/python:$PYTHONPATH"
# export ROS_OS_OVERRIDE=osx:homebrew
# export CC=/usr/bin/gcc
# Set architecture flags
# export ARCHFLAGS="-arch x86_64"
# ROS Fuerte environment setup
# source ~/ros/setup.zsh
# Using workspace setup.zsh
# source ~/Projects/ros_fuerte_workspace/setup.zsh
export EDITOR="/usr/local/bin/mate -w"
export PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
# Logins and secrets
# PetCuida Apps
# export MANDRILL_USERNAME="mdlima"
# export MANDRILL_API_KEY="08b522a3-44fe-4d03-abaa-57fa8b1a4c33"
# export MAILCHIMP_API_KEY="08b255adf106bfea513a2643f433b245-us6"
# Local MySQL
# export MYSQL_USERNAME="root"
# export MYSQL_PWD="6FT>i2@Zx?lv5dg"
# AWS
# source /usr/local/share/zsh/site-functions/_aws
# source /usr/local/share/zsh/site-functions/_git
# source /usr/local/share/zsh/site-functions/_hub
# Gnuterm for Octave
# To use the gnuplot plotting engine, you must set the environment
# variable GNUTERM. Valid choices include:
# GNUTERM=x11 # X windows must be installed
# GNUTERM=qt # gnuplot must have been compiled with Qt support
# GNUTERM=aqua # if you are using Aquaterm
# You may also set this variable from within Octave with the command
# setenv('GNUTERM','qt') % or 'x11', or 'aqua'
export GNUTERM=x11
PERL_MB_OPT="--install_base \"/Users/mdlima/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/Users/mdlima/perl5"; export PERL_MM_OPT;
# Extra configs
# source $HOME/Projects/GitHub/oh-my-git/prompt.sh
# source "$HOME/Projects/GitHub/antigen/antigen.zsh"
# antigen-use oh-my-zsh
# antigen-bundle arialdomartini/oh-my-git
# antigen theme arialdomartini/oh-my-git-themes oppa-lana-style
# antigen-apply
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment