]> git.rmz.io Git - dotfiles.git/blob - zsh/lib/motd.zsh
dircolors: add kitty to solarized-dark theme
[dotfiles.git] / zsh / lib / motd.zsh
1 autoload colors; colors;
2
3 short()
4 {
5 print "$fg_bold[white]$1$reset_color $2"
6 }
7
8 msg()
9 {
10 print "$fg_bold[white]$1$reset_color\n$2\n"
11 }
12
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))
16 fi
17
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"
22 fi