* usr/share/byobu/profiles/bashrc:

- allow override via a $DISTRO env variable
This commit is contained in:
Dustin Kirkland 2013-08-03 14:48:40 -05:00
commit a11296184a
2 changed files with 3 additions and 1 deletions

2
debian/changelog vendored
View file

@ -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 <kirkland@ubuntu.com> Fri, 02 Aug 2013 17:30:11 -0500

View file

@ -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