Skip to content

Instantly share code, notes, and snippets.

@blude
Created May 27, 2011 22:52
Show Gist options
  • Save blude/996352 to your computer and use it in GitHub Desktop.
Save blude/996352 to your computer and use it in GitHub Desktop.
Terminal bonitinho :)
[[ -s "/Users/saulo/.rvm/scripts/rvm" ]] && source "/Users/saulo/.rvm/scripts/rvm" # This loads RVM into a shell session.
PATH=$PATH:/usr/local/mysql/bin/
DYLD_LIBRARY_PATH=/usr/local/mysql/lib:$DYLD_LIBRARY_PATH
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# Make bash check its window size after a process completes
shopt -s checkwinsize
# GREP
export GREP_OPTIONS='--color=auto'
export GREP_COLOR='1;33'
alias grep='grep --color=auto' # Always highlight grep search term
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
# LS COLORS
export CLICOLOR=1
# export LSCOLORS=ExFxCxDxBxegedabagacad
export LSCOLORS=ExFxCxDxBxegedabagcxdx
function prompt {
local RED="\[\033[0;31m\]"
local GREEN="\[\033[0;32m\]"
local YELLOW="\[\033[0;33m\]"
local BLUE="\[\033[0;34m\]"
local PURPLE="\[\033[0;35m\]"
local CYAN="\[\033[0;36m\]"
local GRAY="\[\033[1;30m\]"
local BLACK="\[\033[0;30m\]"
local LIGHT_GRAY="\[\033[0;37m\]"
local WHITE="\[\033[1;37m\]"
export PS1="${LIGHT_GRAY}\u${LIGHT_GRAY}@${LIGHT_GRAY}\h ${BLUE}\w ${GREEN}\$(parse_git_branch) ${YELLOW}$ \[\e[m\]\[\e[m\]"
}
prompt
export JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
export PATH=$PATH:$JAVA_HOME/bin
##
# Your previous /Users/saulo/.bash_profile file was backed up as /Users/saulo/.bash_profile.macports-saved_2011-05-11_at_18:21:42
##
# MacPorts Installer addition on 2011-05-11_at_18:21:42: adding an appropriate PATH variable for use with MacPorts.
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
# Finished adapting your PATH environment variable for use with MacPorts.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment