[Fish] Only execute pumo-system-info if found

This commit is contained in:
Lucien Cartier-Tilet 2022-05-01 23:17:19 +02:00
parent e832b3cda9
commit 6ee3af65bd
Signed by: phundrak
GPG Key ID: BD7789E705CB8DCA

View File

@ -62,7 +62,7 @@ Now, there is only one function I modify when it comes to the appearance of fish
when Im the one using it: the ~fish_greeting~ function. I use it to display the output of [[https://labs.phundrak.com/phundrak/pumo-system-info][a utility I wrote]].
#+BEGIN_SRC fish
function fish_greeting
pumo-system-info
which pumo-system-info 2&> /dev/null && pumo-system-info || df -H | grep -v Filesystem | sort -rk 5
end
#+END_SRC