Created
May 17, 2012 01:56
-
-
Save mscottford/2715608 to your computer and use it in GitHub Desktop.
My .bash_profile
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH=$HOME/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin | |
# Use sublime text 2 for opening gems | |
export GEM_OPEN_EDITOR=subl | |
export BUNDLER_EDITOR=subl | |
# Puts npm libraries in the node path | |
export NODE_PATH=/usr/local/lib/node:/usr/local/lib/node_modules | |
# Ruby performance settings from https://gist.github.com/1688857 | |
export RUBY_HEAP_MIN_SLOTS=1000000 | |
export RUBY_HEAP_SLOTS_INCREMENT=1000000 | |
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1 | |
export RUBY_GC_MALLOC_LIMIT=1000000000 | |
export RUBY_HEAP_FREE_MIN=500000 | |
# This turns on colored output for `ls` | |
export CLICOLOR=true | |
# This loads aliases | |
[[ -s "$HOME/.aliases" ]] && . "$HOME/.aliases" | |
function red_text { | |
local LIGHT_RED="\[\033[1;31m\]" | |
local NO_COLOR="\[\033[0m\]" | |
echo "$LIGHT_RED$1$NO_COLOR" | |
} | |
function green_text { | |
local LIGHT_GREEN="\[\033[1;32m\]" | |
local NO_COLOR="\[\033[0m\]" | |
echo "$LIGHT_GREEN$1$NO_COLOR" | |
} | |
function ruby_version_prompt { | |
local RUBY_VERSION_CMD="rbenv version-name" | |
echo "'\$($RUBY_VERSION_CMD)'" | |
} | |
function include_ruby_version_in_prompt { | |
PS1="\n$(red_text ':ruby') => $(green_text "$(ruby_version_prompt)")\n$PS1" | |
} | |
# Includes colored ruby version on the terminal command prompt | |
include_ruby_version_in_prompt | |
# rbenv support | |
eval "$(rbenv init -)" |
Just updated to still show ruby version, but get that version from rbenv instead of rvm.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Getting rid of rvm, but I have some good stuff in this .bash_profile that I wanted to keep around somewhere.