From a11296184a27f0443971d0b90c22a488cc2a01e4 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Sat, 3 Aug 2013 14:48:40 -0500 Subject: [PATCH] * usr/share/byobu/profiles/bashrc: - allow override via a $DISTRO env variable --- debian/changelog | 2 ++ usr/share/byobu/profiles/bashrc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 2566e988..10c4debf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -5,6 +5,8 @@ byobu (5.51) unreleased; urgency=low usr/share/byobu/profiles/Makefile.am, usr/share/byobu/profiles/ps1.sh: - use a common bashrc file + * usr/share/byobu/profiles/bashrc: + - allow override via a $DISTRO env variable -- Dustin Kirkland Fri, 02 Aug 2013 17:30:11 -0500 diff --git a/usr/share/byobu/profiles/bashrc b/usr/share/byobu/profiles/bashrc index 6e7e0d47..7d240351 100644 --- a/usr/share/byobu/profiles/bashrc +++ b/usr/share/byobu/profiles/bashrc @@ -19,7 +19,7 @@ if [ -n "$TMUX" ] || (printf "$TERMCAP" | grep -qs "screen"); then # Ensure that we're in bash, in a byobu environment if [ -n "$BYOBU_BACKEND" ] && [ "$SHELL" = "/bin/bash" ]; then - if grep -qs "^Ubuntu" /etc/issue; then + if [-z "$DISTRO" ] && grep -qs "^Ubuntu" /etc/issue; then # 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\]❭ " else