fetch

A MSYS2-compatible sys-info prompt
Log | Files | Refs | README | LICENSE

commit 1efcf5aa5390ac8a7877eda979c4ca48dbe0a73b
parent 7aa71b0ad424140f851483571efe981dd01d8003
Author: Byron Torres <b@torresjrjr>
Date:   Sun, 31 Jan 2021 22:49:47 +0000

Simplify colour() declarations

Diffstat:
Mfetch | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/fetch b/fetch @@ -74,11 +74,11 @@ _palette() { printf "\e[7m$c1 $c2 $c3 $c4 $c5 $c6 \e[m\n" ;} ## Colours colours() { - c0=$(printf '\e[0m' ) - c1=$(printf '\e[31m'); c2=$(printf '\e[32m') - c3=$(printf '\e[33m'); c4=$(printf '\e[34m') - c5=$(printf '\e[35m'); c6=$(printf '\e[36m') - c7=$(printf '\e[37m'); c8=$(printf '\e[38m') + c0='\e[0m' + c1='\e[31m'; c2='\e[32m' + c3='\e[33m'; c4='\e[34m' + c5='\e[35m'; c6='\e[36m' + c7='\e[37m'; c8='\e[38m' }