HN
Hacker News
Top
New
Best
Ask
Show
Jobs
Comment by db48x | Hacker News Reader
Parent
Full thread
db48x
·
What’s so arcane about `echo "$(tput setaf 6)cyan$(tput sgr0)"`?
View on HN
croo
·
Uh we must be using different prompts. I'm talking about this: export PS1="\u@\h \[\033[32m\]\w\[\033[33m\]\$(parse_git_branch)\[\033[00m\] $ "
db48x
·
export PS1="\u@\h \[$(tput setaf 7)\]\w\[$(tput setaf 8)\]\$(parse_git_branch)\[$(tput sgr0)\] $ "
Reply on news.ycombinator.com