mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 06:23:19 -07:00
* usr/lib/byobu/time, usr/share/byobu/status/statusrc:
- add an option to time to hide seconds
This commit is contained in:
parent
d7202c86ba
commit
cbd4c56dcb
3 changed files with 14 additions and 2 deletions
2
debian/changelog
vendored
2
debian/changelog
vendored
|
@ -13,6 +13,8 @@ byobu (5.34) unreleased; urgency=low
|
|||
- fix time_binary printing "\n" and killing other output
|
||||
* usr/lib/byobu/updates_available:
|
||||
- make updates_available aware of homebrew
|
||||
* usr/lib/byobu/time, usr/share/byobu/status/statusrc:
|
||||
- add an option to time to hide seconds
|
||||
|
||||
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 08 Feb 2013 14:48:02 -0600
|
||||
|
||||
|
|
|
@ -24,12 +24,18 @@ __time_detail() {
|
|||
}
|
||||
|
||||
__time() {
|
||||
local secs=1
|
||||
[ -n "$TIME_SECONDS" ] && secs=$TIME_SECONDS
|
||||
case "$BYOBU_BACKEND" in
|
||||
screen)
|
||||
printf "\0050c:\005s"
|
||||
format="\0050c"
|
||||
[ "$secs" != "0" ] && format="$format:\005s"
|
||||
printf $format
|
||||
;;
|
||||
tmux|*)
|
||||
date +"%H:%M:%S"
|
||||
format="%H:%M"
|
||||
[ "$secs" != "0" ] && format="$format:%S"
|
||||
date +$format
|
||||
;;
|
||||
esac
|
||||
}
|
||||
|
|
|
@ -72,3 +72,7 @@
|
|||
# to instead count number of distinct users logged onto the system
|
||||
# Default: 0
|
||||
#USERS_DISTINCT=0
|
||||
|
||||
# Set this to zero to hide seconds int the time display
|
||||
# Default 1
|
||||
#TIME_SECONDS=0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue