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)\]->'
Written by MacKittipat
Related protips
2 Responses
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
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Ps1
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#