mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-20 21:43:19 -07:00
* usr/lib/byobu/include/shutil, usr/lib/byobu/logo:
- add a logo for gLinux
This commit is contained in:
parent
db3d301216
commit
706262387c
3 changed files with 12 additions and 0 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -11,6 +11,8 @@ byobu (5.126) unreleased; urgency=medium
|
||||||
* usr/lib/byobu/session:
|
* usr/lib/byobu/session:
|
||||||
- don't count sessions that start with _
|
- don't count sessions that start with _
|
||||||
- BUG: #892489
|
- BUG: #892489
|
||||||
|
* usr/lib/byobu/include/shutil, usr/lib/byobu/logo:
|
||||||
|
- add a logo for gLinux
|
||||||
|
|
||||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 16 Mar 2018 10:09:57 -0700
|
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 16 Mar 2018 10:09:57 -0700
|
||||||
|
|
||||||
|
|
|
@ -318,6 +318,11 @@ get_distro() {
|
||||||
true
|
true
|
||||||
elif [ -r "/etc/os-release" ]; then
|
elif [ -r "/etc/os-release" ]; then
|
||||||
distro=$(. /etc/os-release && echo "$NAME")
|
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
|
elif [ -r "/etc/issue" ]; then
|
||||||
# lsb_release is *really* slow; try to use /etc/issue first
|
# lsb_release is *really* slow; try to use /etc/issue first
|
||||||
local issue
|
local issue
|
||||||
|
|
|
@ -84,6 +84,11 @@ __logo() {
|
||||||
logo=" > "
|
logo=" > "
|
||||||
$MARKUP && printf "$(color b c w)%s$(color -)" "$logo" || printf "$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*)
|
*mac*|*darwin*)
|
||||||
if [ "$BYOBU_BACKEND" = "tmux" ] && [ "$BYOBU_CHARMAP" = "UTF-8" ]; then
|
if [ "$BYOBU_BACKEND" = "tmux" ] && [ "$BYOBU_CHARMAP" = "UTF-8" ]; then
|
||||||
# The Apple option character
|
# The Apple option character
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue