Skip to content

Commit

Permalink
Moving my git dot file.
Browse files Browse the repository at this point in the history
  • Loading branch information
hgarcia committed Jun 18, 2013
1 parent cc6aac9 commit 9750ab6
Showing 1 changed file with 18 additions and 5 deletions.
23 changes: 18 additions & 5 deletions .git_prompt.sh → dot_files/.git_prompt.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
#Original: https://gist.github.com/halbtuerke/31934

RED="\[\033[0;31m\]"
RED="\[\033[0;31m\]"
YELLOW="\[\033[0;33m\]"
GREEN="\[\033[0;32m\]"
GREEN="\[\033[0;32m\]"
BLUE="\[\033[0;34m\]"
LIGHT_RED="\[\033[1;31m\]"
LIGHT_GREEN="\[\033[1;32m\]"
WHITE="\[\033[1;37m\]"
LIGHT_GRAY="\[\033[0;37m\]"
COLOR_NONE="\[\e[0m\]"

alias gst="git status"
alias gb="git branch"
alias gp="git pull"
alias gl="git log"
alias ga="git add ."
alias gA="git add -A"

function gm() {
git commit -m"$1";
}

function gco() {
git checkout $1;
}

function parse_git_branch {

Expand Down Expand Up @@ -49,4 +62,4 @@ function prompt_func() {
fi
}

PROMPT_COMMAND=prompt_func
PROMPT_COMMAND=prompt_func

0 comments on commit 9750ab6

Please sign in to comment.