mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-21 14:03:18 -07:00
* release, logo: default the logo and release to Byobu, if undetermined
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
7297b18e93
commit
ee8358aefd
3 changed files with 11 additions and 7 deletions
6
bin/logo
6
bin/logo
|
@ -81,8 +81,8 @@ print_logo() {
|
|||
$MARKUP && printf "\005{= Wr}$logo" || printf "$logo"
|
||||
;;
|
||||
*)
|
||||
logo=" 屏風 "
|
||||
$MARKUP && printf "\005{= Wk}$logo" || printf " $logo "
|
||||
logo="|B|"
|
||||
$MARKUP && printf "\005{=b kW}$logo" || printf " $logo "
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
@ -112,4 +112,4 @@ if which lsb_release >/dev/null 2>&1; then
|
|||
fi
|
||||
|
||||
# No idea!
|
||||
printf " ? "
|
||||
printf "|B|"
|
||||
|
|
|
@ -17,7 +17,11 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
if which lsb_release >/dev/null 2>&1; then
|
||||
PKG="byobu"
|
||||
|
||||
if [ -r "$HOME/.$PKG/distro" ]; then
|
||||
printf "\005{+b }%s\005{-} " `cat "$HOME/.$PKG/distro"`
|
||||
elif which lsb_release >/dev/null 2>&1; then
|
||||
if [ "$1" = "--detail" ]; then
|
||||
lsb_release -a 2>/dev/null
|
||||
exit 0
|
||||
|
@ -42,5 +46,5 @@ elif [ -r "/etc/issue" ]; then
|
|||
# Otherwise, grab part of /etc/issue, ideally the distro and version
|
||||
printf "\005{+b }%s\005{-} " $(head -n1 /etc/issue | sed "s/ [^0-9]* / /" | awk '{print $1 " " $2}')
|
||||
else
|
||||
echo "Unknown"
|
||||
echo "Byobu"
|
||||
fi
|
||||
|
|
4
debian/changelog
vendored
4
debian/changelog
vendored
|
@ -3,9 +3,9 @@ byobu (2.25) unreleased; urgency=low
|
|||
* hostname, ip_address, mem_available: make sure statusrc exists
|
||||
before sourcing it, LP: #407478
|
||||
* temp_f, temp_c: use degree character
|
||||
* release, logo: default the logo and release to Byobu, if undetermined
|
||||
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Sun, 02 Aug 2009 21:45:56 -0400
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 03 Aug 2009 03:51:06 +0100
|
||||
|
||||
byobu (2.24-0ubuntu1) karmic; urgency=low
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue