Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

zsh: Mostly style changes

  • Loading branch information...
commit b0e8e87cda344192c946fe1c8c1f55e6f5478f03 1 parent c7aab0c
@csand authored
Showing with 15 additions and 5 deletions.
  1. +15 −5 zsh/.zshenv
View
20 zsh/.zshenv
@@ -1,6 +1,6 @@
EDITOR=vim
-# Homebrew
+# Mac settings
if [[ `uname` = 'Darwin' ]]
then
PATH=/usr/local/sbin:$PATH
@@ -8,16 +8,25 @@ fi
# Pythons
if [[ -d /usr/local/share/python ]]
- then PATH=/usr/local/share/python:$PATH
+then
+ PATH=/usr/local/share/python:$PATH
fi
if [[ -d /usr/local/share/python3 ]]
- then PATH=/usr/local/share/python3:$PATH
+then
+ PATH=/usr/local/share/python3:$PATH
fi
# rbenv
+# Get it on the path first is ~/.rbenv exists
+if [[ -d ~/.rbenv ]]
+then
+ PATH=$HOME/.rbenv/bin:$PATH
+fi
+
if which rbenv &>/dev/null
- then eval "$(rbenv init -)"
+then
+ eval "$(rbenv init -)"
fi
# virtualenvwrapper
@@ -27,7 +36,8 @@ PIP_RESPECT_VIRTUALENV=true
VIRTUALENVWRAPPER_PYTHON=/usr/local/bin/python
if which virtualenvwrapper_lazy.sh &>/dev/null
- then source virtualenvwrapper_lazy.sh
+then
+ source virtualenvwrapper_lazy.sh
fi
# Personal bin dir
Please sign in to comment.
Something went wrong with that request. Please try again.