From 6c69861661821ceb9e0e3c5879b711c320dcfde5 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 19 Sep 2013 12:22:04 -0500 Subject: [PATCH] * usr/share/byobu/profiles/bashrc: - prepend previous command's exit status on the fancy Byobu prompt; thanks for the wonderful idea, Martin Pitt! --- debian/changelog | 3 +++ usr/share/byobu/profiles/bashrc | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 02d538c1..3516f95c 100644 --- a/debian/changelog +++ b/debian/changelog @@ -19,6 +19,9 @@ byobu (5.59) unreleased; urgency=low keys.tmux, usr/share/byobu/keybindings/f-keys.tmux.disable, usr/share/doc/byobu/help.tmux.txt: - add a new keybiding, Alt-F5, to toggle UTF-8 on and off + * usr/share/byobu/profiles/bashrc: + - prepend previous command's exit status on the fancy Byobu + prompt; thanks for the wonderful idea, Martin Pitt! -- Dustin Kirkland Thu, 12 Sep 2013 10:53:27 -0500 diff --git a/usr/share/byobu/profiles/bashrc b/usr/share/byobu/profiles/bashrc index e20faaab..b089c2c3 100644 --- a/usr/share/byobu/profiles/bashrc +++ b/usr/share/byobu/profiles/bashrc @@ -32,17 +32,17 @@ if [ -n "$TMUX" ] || [ "${TERMCAP#*screen}" != "${TERMCAP}" ]; then case "$BYOBU_CHARMAP" in "UTF-8") # MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET (U+27EB, Pe): ⟫ - PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;5m\]\h\[\e[00m\]:\[\e[38;5;172m\]\w\[\e[00m\]⟫ " + PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$? \[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;5m\]\h\[\e[00m\]:\[\e[38;5;172m\]\w\[\e[00m\]⟫ " ;; *) # Simple ASCII greater-than sign - PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;5m\]\h\[\e[00m\]:\[\e[38;5;172m\]\w\[\e[00m\]> " + PS1="${debian_chroot:+($debian_chroot)}\[\e[38;5;202m\]\$? \[\e[38;5;245m\]\u\[\e[00m\]@\[\e[38;5;5m\]\h\[\e[00m\]:\[\e[38;5;172m\]\w\[\e[00m\]> " ;; esac ;; *) # Use Byobu colors (green / blue / red) - PS1="${debian_chroot:+($debian_chroot)}\[\e[00;32m\]\u\[\e[00m\]@\[\e[00;36m\]\h\[\e[00m\]:\[\e[00;31m\]\w\[\e[00m\]\$ " + PS1="${debian_chroot:+($debian_chroot)}\[\e[31m\]\$? \[\e[00;32m\]\u\[\e[00m\]@\[\e[00;36m\]\h\[\e[00m\]:\[\e[00;31m\]\w\[\e[00m\]\$ " ;; esac fi