Created
August 2, 2013 18:09
-
-
Save guilhermegregio/6142040 to your computer and use it in GitHub Desktop.
Meu .bashrc do mac
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
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