Created
September 28, 2013 01:54
-
-
Save fdaciuk/6737566 to your computer and use it in GitHub Desktop.
Arquivo de configuração do terminal .bash_profile no Mac ou .bashrc no Linux
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
# 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 | |
# Deploy na branch dev para a master | |
alias dpl='git checkout master && git merge dev && git push origin master && git checkout dev' | |
# Deploy na gh-pages: Merge na dev, push na gh-pages, checkout na master, merge da dev na master e deploy na master. Volta pra dev. | |
alias ghdpl='git checkout gh-pages && git merge dev && git push origin gh-pages && dpl' | |
alias gpm='git pull origin master' | |
# Git Add + Commit | |
alias gac='git add . && git commit -am' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment