Created
December 19, 2014 03:06
-
-
Save Nava2/1be34c2e82cc4bfc4634 to your computer and use it in GitHub Desktop.
This file contains 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
C_RED="\[\033[0;31m\]" | |
C_GREEN="\[\033[0;32m\]" | |
C_LIGHT_GRAY="\[\033[0;37m\]" | |
C_RESET="\[\033[0m\]" | |
C_BROWN="\[\033[0;33m\]" | |
C_BLUE="\[\033[0;34m\]" | |
C_PURPLE="\[\033[0;35m\]" | |
C_CYAN="\[\033[0;36m\]" | |
C_GRAY="\[\033[1;30m\]" | |
C_WHITE="\[\033[1;37m\]" | |
C_YELLOW="\[\033[1;33m\]" | |
C_LIGHT_BLUE="\[\033[1;34m\]" | |
C_LIGHT_CYAN="\[\033[1;36m\]" | |
C_LIGHT_PURPLE="\[\033[1;35m\]" | |
C_LIGHT_RED="\[\033[1; 31m\]" | |
C_LIGHT_GREEN="\[\033[1;32m\]" |
This file contains 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
source ~/.ansicolour.sh | |
# set a fancy prompt (non-color, overwrite the one in /etc/profile) | |
function parse_git_branch_and_add_brackets { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ (\1)/' | |
} | |
# User specific aliases and functions | |
PS1="$C_CYAN[$C_LIGHT_GRAY\$?$C_CYAN][$C_LIGHT_GRAY\u@\h:\W$C_CYAN]$C_YELLOW\$(parse_git_branch_and_add_brackets) $C_CYAN\$ $C_RESET" | |
alias g='git' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment