Last active
December 12, 2015 15:41
-
-
Save H6/2a472024d3c716038f48 to your computer and use it in GitHub Desktop.
Nice Color Bash Prompt with Github Branch and some aliases
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
# Clone to your home | |
# curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-prompt.sh -o ~/.git-prompt.sh | |
alias g='git' | |
alias h='history' | |
alias l='ls -G' | |
alias ll='ls -lhG' | |
alias lll='ls -lahG' | |
# Include in ~/.bash_profile: | |
source ~/.git-prompt.sh | |
export GREEN="\[\033[32m\]" | |
export RED="\[\033[31m\]" | |
export BOLD_RED="\[\033[1;31m\]" | |
export RESET="\[\033[0m\]" | |
export BOLD_BLUE="\[\033[1;34m\]" | |
export BOLD_PURPLE="\[\033[1;35m\]" | |
PS1="${GREEN}\u${RESET}@${BOLD_RED}\h${RESET}:${RESET}\w${RESET}${BOLD_BLUE}\$(__git_ps1)${RESET}${BOLD_PURPLE} λ${RESET} " |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment