2 ms·
Thanks. After reading the post, I turned my prompt into that : https://gist.github.com/648a75ec821acff10749 https://gist.github.com/648a75ec821acff10749 which
by oelmekki 14y ago
Thanks. After reading the post, I turned my prompt into that : https://gist.github.com/648a75ec821acff10749 https://gist.github.com/648a75ec821acff10749
which looks like that : http://i.imgur.com/Qc86I.png 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.