Skip to content

Instantly share code, notes, and snippets.

@guilhermegregio
Created August 2, 2013 18:09
Show Gist options
  • Save guilhermegregio/6142040 to your computer and use it in GitHub Desktop.
Save guilhermegregio/6142040 to your computer and use it in GitHub Desktop.
Meu .bashrc do mac
function parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
NO_COLOR="\[\033[0;0m\]"
PS1="$GREEN\W$NO_COLOR$RED\$(parse_git_branch)$GREEN\$$NO_COLOR "
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
export NPM_HOME=$HOME/.npm-packages
export PATH=$NPM_HOME/bin:$PATH
#aliases
alias ls='ls -h'
alias ll='ls -lhF'
alias la='ls -lhA'
alias l='ls -CF'
alias startMysql='mysql.server start'
alias stopMysql='mysql.server stop'
alias startRedis='redis-server'
alias startMongo='mongod'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment