]>
git.rmz.io Git - dotfiles.git/blob - zsh/lib/motd.zsh
1 autoload colors
; colors
;
5 print
"$fg_bold[white]$1$reset_color $2"
10 print
"$fg_bold[white]$1$reset_color\n$2\n"
13 if [[ -d ~
/org
]]; then
14 # 44 seems to be the number of color escape characters used by grep
15 todo
| cut
-c-$((COLUMNS + 44))
18 # checkupdate.service populates this db
19 pkg_count
=$(checkupdates -n | grep -cv '\[.*\]')
20 if (( $pkg_count > 0 )); then
21 short
"Outdated packages: $pkg_count"
24 # list sessions if possible
25 tmux list
-sessions 2>/dev
/null
|| true