Dotfiles config update (2022-02-28)
This commit is contained in:
parent
10a2cd91f0
commit
06dd82a1f1
2
.bashrc
2
.bashrc
|
@ -173,7 +173,7 @@ uptime=$(uptime | tr -s " " | cut -d "," -f 1)
|
||||||
uptime=$(echo ${uptime})
|
uptime=$(echo ${uptime})
|
||||||
#shell="5.1.4" # Run bash --version
|
#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)
|
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)
|
user_loaded=$(whoami)
|
||||||
home_user="${HOME}"
|
home_user="${HOME}"
|
||||||
cpu_model=$(lscpu | grep "Model name:" | tr -s " " | cut -d ":" -f 2)
|
cpu_model=$(lscpu | grep "Model name:" | tr -s " " | cut -d ":" -f 2)
|
||||||
|
|
|
@ -9,7 +9,7 @@ uptime=$(uptime | tr -s " " | cut -d "," -f 1)
|
||||||
uptime=$(echo ${uptime})
|
uptime=$(echo ${uptime})
|
||||||
#shell="5.1.4" # Run bash --version
|
#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)
|
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)
|
user_loaded=$(whoami)
|
||||||
home_user="${HOME}"
|
home_user="${HOME}"
|
||||||
cpu_model=$(lscpu | grep "Model name:" | tr -s " " | cut -d ":" -f 2)
|
cpu_model=$(lscpu | grep "Model name:" | tr -s " " | cut -d ":" -f 2)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user