Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Post says $PS1="\[\033[G\]$PS1"

But the first $ is wrong, it should read PS1="\[\033[G\]$PS1"



Even

    export PS1="\[\033[G\]$PS1"


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: