From 706262387cdbbd80c942211780852be17dddee88 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 27 Apr 2018 03:43:45 -0500 Subject: [PATCH] * usr/lib/byobu/include/shutil, usr/lib/byobu/logo: - add a logo for gLinux --- debian/changelog | 2 ++ usr/lib/byobu/include/shutil | 5 +++++ usr/lib/byobu/logo | 5 +++++ 3 files changed, 12 insertions(+) diff --git a/debian/changelog b/debian/changelog index 5e96152b..3a1dbe10 100644 --- a/debian/changelog +++ b/debian/changelog @@ -11,6 +11,8 @@ byobu (5.126) unreleased; urgency=medium * usr/lib/byobu/session: - don't count sessions that start with _ - BUG: #892489 + * usr/lib/byobu/include/shutil, usr/lib/byobu/logo: + - add a logo for gLinux -- Dustin Kirkland Fri, 16 Mar 2018 10:09:57 -0700 diff --git a/usr/lib/byobu/include/shutil b/usr/lib/byobu/include/shutil index edccc974..340f23c5 100755 --- a/usr/lib/byobu/include/shutil +++ b/usr/lib/byobu/include/shutil @@ -318,6 +318,11 @@ get_distro() { true elif [ -r "/etc/os-release" ]; then distro=$(. /etc/os-release && echo "$NAME") + case "$distro" in + Debian*) + distro=$(. /etc/lsb-release && [ -n "$GOOGLE_ID" ] && echo "gLinux" || echo "Debian") + ;; + esac elif [ -r "/etc/issue" ]; then # lsb_release is *really* slow; try to use /etc/issue first local issue diff --git a/usr/lib/byobu/logo b/usr/lib/byobu/logo index 6d867483..1d951ef6 100755 --- a/usr/lib/byobu/logo +++ b/usr/lib/byobu/logo @@ -84,6 +84,11 @@ __logo() { logo=" > " $MARKUP && printf "$(color b c w)%s$(color -)" "$logo" || printf "$logo" ;; + *glinux*) + #$MARKUP && printf "$(color W b)g$(color W r)L$(color W y)i$(color W b)n$(color W g)u$(color W r)x$(color -)" "$logo" || printf "$logo" + logo="gLinux" + $MARKUP && printf "$(color W b)%s$(color -)" "$logo" || printf "$logo" + ;; *mac*|*darwin*) if [ "$BYOBU_BACKEND" = "tmux" ] && [ "$BYOBU_CHARMAP" = "UTF-8" ]; then # The Apple option character