Hacker News new | past | comments | ask | show | jobs | submit login

My personal favourite: PS1="%~ $ "





I'm assuming that this is a zsh prompt string.

Yes, bash would be: PS1='\w \$ '



Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: