Feature suggestion: It would be great to be able to change the colors of the individual components a la https://github.com/twolfson/sexy-bash-prompt
This:
export PS1="\h:\W\$(parse_git_branch) \u$ "
will execute parse_git_branch only once (at the time PS1 is set) but this: export PS1='\h:\W\$(parse_git_branch) \u$ '
will execute it every time the prompt every time.I'd love to see support for the terminal window title here, too. Add an additional container for the titlebar contents, and prefix \[\e]0;$titlebar_contents\a\] to the prompt when TERM is xterm, rxvt, or screen*.
Also, colors should be draggable into the prompt, since they can change between different parts of the prompt.
"Last command error when not successful" is nice as well; just add this to your prompt (includes color and whitespace):
$(e="$?";[ "$e" -ne 0 ] && echo -n "\[\e[01;31m\]($e) ")
On my system, I also have some extra logic to only show the username and hostname if either $SSH_CONNECTION is set or the username is not my usual username (usually because it's either root, some user I've sudoed to, or an unusual username because I'm on a system with mandated username conventions). Thus, on my personal system, my initial prompt is "~$ ", taking up very little room. Unfortunately "not my usual username" isn't portable to different users (though you could check for the presence of SUDO_USER), but checking SSH_CONNECTION is. LED=$(perl -le "\$!+=${LE};print \$!" 2>/dev/null || echo "unknown error")
It's not perfect but I haven't found a more reliable way to map exit status' to something like the right meaning.It sounds interesting, or at least I can imagine something interesting based on that description, but the only concrete information readily available seems to be that Impromptu requires Node.js and Redis. Those are fairly onerous requirements for a shell prompt, so some description of the actual features is probably warranted.
Neat though.
I'm on Firefox v22.
1. Items shouldn't disappear from the selection (I can only add one (space) for some reason).
2. Allow grouping of items. For example, if you want to have [time] you should be able to drag the "[", "time", and "]" as a group instead of individually.
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.
I would suggest adding a "$/#" bubble which adds "\$" to the PS1 string.
export PS1="\[\e[30;0m\]\w^$ \v\h\u\W\u:\[\e[0m\]"