From b776bd855483a92569e98427782dbd1519c54b7e Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Thu, 19 Sep 2013 09:51:13 -0500 Subject: [PATCH] =?UTF-8?q?*=20usr/share/byobu/profiles/bashrc:=20=20=20-?= =?UTF-8?q?=20use=20MATHEMATICAL=20RIGHT=20DOUBLE=20ANGLE=20BRACKET=20(U+2?= =?UTF-8?q?7EB,=20Pe):=20=E2=9F=AB=20=20=20-=20I've=20tested=20this=20to?= =?UTF-8?q?=20display=20properly=20in:=20=20=20=20=20+=20gnome-terminal,?= =?UTF-8?q?=20xterm,=20uxterm,=20terminator,=20konsole=20=20=20-=20Still?= =?UTF-8?q?=20doesn't=20look=20right=20in=20putty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- debian/changelog | 6 +++++- usr/share/byobu/profiles/bashrc | 11 ++++++++++- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 4be89286..5f597302 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,10 @@ byobu (5.59) unreleased; urgency=low - * UNRELEASED + * usr/share/byobu/profiles/bashrc: + - use MATHEMATICAL RIGHT DOUBLE ANGLE BRACKET (U+27EB, Pe): ⟫ + - I've tested this to display properly in: + + gnome-terminal, xterm, uxterm, terminator, konsole + - Still doesn't look right in putty -- 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 70af8f85..7ac86e85 100644 --- a/usr/share/byobu/profiles/bashrc +++ b/usr/share/byobu/profiles/bashrc @@ -28,7 +28,16 @@ if [ -n "$TMUX" ] || [ "${TERMCAP#*screen}" != "${TERMCAP}" ]; then case "$BYOBU_DISTRO" in "Ubuntu") # Use Ubuntu colors (grey / aubergine / orange) - 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\]❭ " + case "$(locale charmap 2>/dev/null || echo)" 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\]⟫ " + ;; + *) + # 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\]> " + ;; + esac ;; *) # Use Byobu colors (green / blue / red)