Add chrony timediff to time info
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
49a3d38aa5
commit
647e190761
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
printf '\uf5ec '
|
||||
DIFF=$(${HOME}/bin/tmux-chrony-timediff)
|
||||
[ -n "${DIFF}" ] && DIFF="(${DIFF})"
|
||||
|
||||
date "+%Y-%m-%d %H:%M:%S"
|
||||
printf '\uf5ec %s %s' "$(date "+%Y-%m-%d %H:%M:%S")" "${DIFF}"
|
||||
|
|
Loading…
Reference in a new issue