Forked from danielalvarenga/terminal-colors-branch.sh
Created
February 27, 2024 17:29
-
-
Save rpfreitas111/204ac33c74e0a40d409da331d298890c to your computer and use it in GitHub Desktop.
Revisions
-
danielalvarenga renamed this gist
Nov 24, 2020 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
danielalvarenga revised this gist
Nov 4, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ # Add in ~/.bashrc or ~/.bash_profile function parse_git_branch () { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' } RED="\[\033[01;31m\]" -
danielalvarenga created this gist
Nov 4, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ # Add in ~/.bashrc or ~/.bash_profile function parse_git_branch () { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' } RED="\[\033[01;31m\]" YELLOW="\[\033[01;33m\]" GREEN="\[\033[01;32m\]" BLUE="\[\033[01;34m\]" NO_COLOR="\[\033[00m\]" # without host PS1="$GREEN\u$NO_COLOR:$BLUE\w$YELLOW\$(parse_git_branch)$NO_COLOR\$ " # with host # PS1="$GREEN\u@\h$NO_COLOR:$BLUE\w$YELLOW\$(parse_git_branch)$NO_COLOR\$ "