Last active
September 27, 2019 14:19
-
-
Save henrytseng/31dd97198ff04eb040c74e3fe39f96f9 to your computer and use it in GitHub Desktop.
Bash profile git branch
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 $HOME/.bash_aliases | |
source $HOME/.ssh/iterm2-color.sh | |
# colors | |
PS1='\w\[\033[0;32m\]$( git branch 2> /dev/null | cut -f2 -d\* -s | sed "s/^ / [/" | sed "s/$/]/" )\[\033[0m\] \$ ' | |
# Tell grep to highlight matches | |
export GREP_OPTIONS='--color=auto' | |
# Tell ls to be colourful | |
export CLICOLOR=1 | |
export LSCOLORS=Exfxcxdxbxegedabagacad |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment