function check_kernel --description='Output message if installed and running kernels are different.'
  set installed (string match --regex '\d\d?.\d\d?.\d\d?' (pacman --query linux))
  #                                                        linux 4.18.5.arch1-1
  set running (string match --regex '\d\d?.\d\d?.\d\d?' (uname --kernel-release))
  #                                                      4.18.4-arch1-1-ARCH
  if test ! $running = $installed
    printf 'Kernel out of date!'
  end
end

function check_kernel --description='Output message if installed and running kernels are different.'
  #                                                     e.g. linux 4.18.5.arch1-1
  set installed (string match --regex '\d\d?.\d\d?.\d\d?' (pacman --query linux))
  #                                                     e.g. 4.18.4-arch1-1-ARCH
  set running (string match --regex '\d\d?.\d\d?.\d\d?' (uname --kernel-release))
  if test ! $running = $installed
    printf "🐧😞"
  else
    printf "🐧☺️"
  end
end

Update output format for status bar
Update output format for status bar

ammgws/dotfiles,ammgws/dotfiles,ammgws/dotfiles