Hacker News new | ask | show | jobs
by xxtjaxx 4687 days ago
1. Better know what you are doing when you fiddle with your shellprompt. Nothing is more agitating than having an unresponsive prompt because you entered a larger git repository. (cough linux kernel cough)

2. Here is a color map which escape will make your prompt look which way. https://github.com/andreas-marschke/misc-tools/blob/master/s...

3. You can find my prompt setup here: https://github.com/andreas-marschke/dotfiles

It's split up across profile,bashrc,bash_alias,bash_export

4. As was requested in the comments here you can use $TERM variable to determine your terminal name. Since most popular terminal emulators try to be what they are supposed to be "dumb vt100s" you'll get xterm or (if you use a multiplexer like tmux,screen) "screen" as $TERM. IMHO its not of much use therefore.

5.https://github.com/Lokaltog/powerline << Mean to test this out. Its more for vim users.