Skip to content

Instantly share code, notes, and snippets.

@Stealthii
Created February 4, 2015 14:25
Show Gist options
  • Save Stealthii/fe7064cb9721094c7924 to your computer and use it in GitHub Desktop.
Save Stealthii/fe7064cb9721094c7924 to your computer and use it in GitHub Desktop.
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
# .zshenv
export USER_LS_COLORS=true # I choose my own fate here
export PATH=$HOME/bin:$PATH
export EDITOR=vim
export SVN_EDITOR=vim
# Pyenv is not sane here
export PATH="$HOME/.pyenv/bin:$PATH"
#eval "$(pyenv init -)" # Doesn't do zsh shit properly
export PATH="$HOME/.pyenv/shims:${PATH}"
source "$HOME/.pyenv/libexec/../completions/pyenv.zsh"
pyenv rehash 2>/dev/null
pyenv() {
typeset command
command="$1"
if [ "$#" -gt 0 ]; then
shift
fi
case "$command" in
pop|push|rehash|shell)
eval `pyenv "sh-$command" "$@"`;;
*)
command pyenv "$command" "$@";;
esac
}
# RVM for all that Ruby goodness
# Used to be needed for RHEL5, old git...
#GREP_OPTIONS="--color=auto"
# Source the rest of my crap
for f in $HOME/.sh.d/*.{sh,zsh}; do
source $f
done
PS1="$PS1"'$([ -n "$TMUX" ] && tmux setenv TMUXPWD_$(tmux display -p "#D" | tr -d %) "$PWD")' # tmux-powerline bollocks
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment