Skip to content

Instantly share code, notes, and snippets.

@Drewch
Last active January 14, 2016 16:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Drewch/5534745 to your computer and use it in GitHub Desktop.
Save Drewch/5534745 to your computer and use it in GitHub Desktop.
This is my path with zsh. One is when I initially set my path as follows: PATH=/default/zsh/setup/path:$PATH and the other as PATH=$PATH:/default/zsh/setup/path. It's worth noting that RVM only works properly when I use the latter. Apologies I can't use / in the file name.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# 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="powerline"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
# 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 many often would you like to wait 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 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=(git)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
export PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
### Adding python pip path
export PATH="/usr/local/share/python:$PATH"
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:$PATH"
### Add Maluuba ServiceTemplates to Path
export PATH="/Users/Drewch/Code/Maluuba/ServiceTemplates/scripts:$PATH"
### Add Cloud Deployment to end of path
export PATH="$PATH:/Users/Drewch/Code/Maluuba/CloudDeployment"
### Adding brew stuff to beginning of path
export PATH="/usr/local/bin:$PATH"
### Create python Path
export PYTHONPATH="$HOME/Code/Maluuba/CloudDeployment:/usr/local/lib/python2.7/site-packages"
### Create AWS CLI Path
export AWS_CONFIG_FILE="~/.aws_config"
export AWS_AUTO_SCALING_HOME=~/Tools/AutoScaling-1.0.61.2
export AWS_CREDENTIAL_FILE="/Users/Drewch/.as_aws_config"
export JAVA_HOME=`/usr/libexec/java_home`
export PATH="$PATH:$AWS_AUTO_SCALING_HOME/bin"
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Drewch@macsbookpro.local  ~   echo $PATH  14:01:44
/usr/local/bin:/Users/Drewch/Code/Maluuba/ServiceTemplates/scripts:/usr/local/heroku/bin:/usr/local/share/python:/Users/Drewch/.rvm/gems/ruby-1.9.3-p392/bin:/Users/Drewch/.rvm/gems/ruby-1.9.3-p392@global/bin:/Users/Drewch/.rvm/rubies/ruby-1.9.3-p392/bin:/Users/Drewch/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/Drewch/.rvm/bin:/Users/Drewch/Code/Maluuba/CloudDeployment:/Users/Drewch/Tools/AutoScaling-1.0.61.2/bin
Drewch@macsbookpro.local  ~   echo $PATH  14:06:41
/usr/local/bin:/Users/Drewch/Code/Maluuba/ServiceTemplates/scripts:/usr/local/heroku/bin:/usr/local/share/python:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/Drewch/.rvm/gems/ruby-1.9.3-p392/bin:/Users/Drewch/.rvm/gems/ruby-1.9.3-p392@global/bin:/Users/Drewch/.rvm/rubies/ruby-1.9.3-p392/bin:/Users/Drewch/.rvm/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/texbin:/Users/Drewch/.rvm/bin:/Users/Drewch/Code/Maluuba/CloudDeployment:/Users/Drewch/Tools/AutoScaling-1.0.61.2/bin
Drewch@macsbookpro.local  ~   echo $PATH  14:04:35
/usr/local/bin:/Users/Drewch/Code/Maluuba/ServiceTemplates/scripts:/usr/local/heroku/bin:/usr/local/share/python:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/Users/Drewch/.rvm/bin:/Users/Drewch/Code/Maluuba/CloudDeployment:/Users/Drewch/Tools/AutoScaling-1.0.61.2/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment