Use screenfetch as motd if installed

master
Jordan Atwood 2 years ago
parent 9843a5c1df
commit 4e51bddf17
Signed by: nightfirecat
GPG Key ID: 615A619C2D73A6DF
  1. 5
      src/.bashrc

@ -241,6 +241,11 @@ 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
screenfetch
return
fi
local kernel_string uptime_seconds uptime_msg cpuinfo cpu_model cpu_cores \ local kernel_string uptime_seconds uptime_msg cpuinfo cpu_model cpu_cores \
cpu_msg k mem_decimals mem_units mem_label mem_percent_free \ cpu_msg k mem_decimals mem_units mem_label mem_percent_free \
mem_danger_cutoff_limit mem_danger_cutoff_percent \ mem_danger_cutoff_limit mem_danger_cutoff_percent \

Loading…
Cancel
Save