From 06dd82a1f103d8ae6405ced030629ad536d3e0dc Mon Sep 17 00:00:00 2001 From: q3aql Date: Mon, 28 Feb 2022 21:23:57 +0100 Subject: [PATCH] Dotfiles config update (2022-02-28) --- .bashrc | 2 +- scripts/bash-logo-colors.bash | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index ab2cba9..cc5ddb1 100644 --- a/.bashrc +++ b/.bashrc @@ -173,7 +173,7 @@ uptime=$(uptime | tr -s " " | cut -d "," -f 1) uptime=$(echo ${uptime}) #shell="5.1.4" # Run bash --version shell=$(bash --version | head -1 | tr -s " " | cut -d " " -f 4 | cut -d "(" -f 1 | cut -d "-" -f 1) -resolution=$(xrandr | grep "*" | head -1 | tr -s " " | cut -d " " -f 2) +resolution=$(xrandr 2> /dev/null | grep "*" | head -1 | tr -s " " | cut -d " " -f 2) user_loaded=$(whoami) home_user="${HOME}" cpu_model=$(lscpu | grep "Model name:" | tr -s " " | cut -d ":" -f 2) diff --git a/scripts/bash-logo-colors.bash b/scripts/bash-logo-colors.bash index ca561b8..118c5e5 100755 --- a/scripts/bash-logo-colors.bash +++ b/scripts/bash-logo-colors.bash @@ -9,7 +9,7 @@ uptime=$(uptime | tr -s " " | cut -d "," -f 1) uptime=$(echo ${uptime}) #shell="5.1.4" # Run bash --version shell=$(bash --version | head -1 | tr -s " " | cut -d " " -f 4 | cut -d "(" -f 1 | cut -d "-" -f 1) -resolution=$(xrandr | grep "*" | head -1 | tr -s " " | cut -d " " -f 2) +resolution=$(xrandr 2> /dev/null | grep "*" | head -1 | tr -s " " | cut -d " " -f 2) user_loaded=$(whoami) home_user="${HOME}" cpu_model=$(lscpu | grep "Model name:" | tr -s " " | cut -d ":" -f 2)