From 2a76191165828754b05da7bac24a24d8a43a16ed Mon Sep 17 00:00:00 2001 From: Jordan Atwood Date: Thu, 18 Aug 2022 11:25:31 -0700 Subject: [PATCH] Pipe screenfetch stderr to /dev/null When running as root (via `sudo su`, for instance), XDG_RUNTIME_DIR is usually not set, which causes some warning messages to be printed prior to screenfetch's output. I don't care about this, so I don't want to see it. --- src/.bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/.bashrc b/src/.bashrc index 506d95e..0515067 100755 --- a/src/.bashrc +++ b/src/.bashrc @@ -246,7 +246,7 @@ function _bashrc_randomcolor { # prints a message of the day (time, shell info, system info, etc.) function _bashrc_motd { if type screenfetch >/dev/null; then - screenfetch + screenfetch 2>/dev/null return fi