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

Thanks. After reading the post, I turned my prompt into that : https://gist.github.com/648a75ec821acff10749

which looks like that : http://i.imgur.com/Qc86I.png

I like having an uri directly pastable to scp. Also, as mentioned in other comments, Having a fixed length prompt on the command line is quite appreciable.

I'm unsatisfied, though, with the need of subshells to draw a single prompt. It's ok for the git part, but I feel like the PROMPT_COMMAND part is a hack, I just can't succeed in making it displays colors (rather than escaped characters) without a subshell.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: