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.
master
Jordan Atwood 2 years ago
parent 514bb1a1c8
commit 2a76191165
Signed by: nightfirecat
GPG Key ID: 615A619C2D73A6DF
  1. 2
      src/.bashrc

@ -246,7 +246,7 @@ function _bashrc_randomcolor {
# prints a message of the day (time, shell info, system info, etc.) # prints a message of the day (time, shell info, system info, etc.)
function _bashrc_motd { function _bashrc_motd {
if type screenfetch >/dev/null; then if type screenfetch >/dev/null; then
screenfetch screenfetch 2>/dev/null
return return
fi fi

Loading…
Cancel
Save