Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
werkshy
on April 27, 2012
|
parent
|
context
|
favorite
| on:
Your Bash Prompt Needs This
Post says $PS1="\[\033[G\]$PS1"
But the first $ is wrong, it should read PS1="\[\033[G\]$PS1"
georgecmu
on April 27, 2012
[–]
Even
export PS1="\[\033[G\]$PS1"
lotheac
on April 27, 2012
|
parent
[–]
I don't think exporting PS1 is a good idea. Child processes don't need it and if I launch a different shell with different PS1 semantics I get a broken prompt instead of whatever the default for that shell is.
Consider applying for YC's Summer 2026 batch! Applications are open till May 4
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
But the first $ is wrong, it should read PS1="\[\033[G\]$PS1"