Last Updated: February 25, 2016
·
576
· mackittipat

My Bash Prompt

export PS1='\[\e]0;\w\a\]\u@\h:\[$(tput setaf 2)\]\w\[$(tput setaf 7)\]:\[$(tput setaf 5)\]`if [ "$(vcprompt)" != "" ]; then echo "$(vcprompt --format=%b)"; fi`\[$(tput setaf 1)\]`if [ "$(vcprompt --format=%a%u%m)" != "" ]; then echo "*"; fi`\[$(tput setaf 2)\]\[$(tput sgr0)\]->'

2 Responses
Add your response

vcprompt for those who don't know: https://github.com/djl/vcprompt

over 1 year ago ·

It will be great if you put some explanation of maybe a preview of the prompt

over 1 year ago ·