mirror of
https://gitlab.com/jschx/ufetch.git
synced 2026-10-31 19:10:31 +00:00
Add ufetch-devuan and fix colors on ufetch-alpine
This commit is contained in:
1 parent
0d8bc6da05
commit
45b1ba0edf
2 files changed
+93
-16
No files matched your search
+12
-16
@@ -39,19 +39,16 @@ fi
|
||||
|
||||
## DEFINE COLORS
|
||||
|
||||
# probably don't change these
|
||||
if [ -x "$(command -v tput)" ]; then
|
||||
bold="$(tput bold)"
|
||||
black="$(tput setaf 0)"
|
||||
red="$(tput setaf 1)"
|
||||
green="$(tput setaf 2)"
|
||||
yellow="$(tput setaf 3)"
|
||||
blue="$(tput setaf 4)"
|
||||
magenta="$(tput setaf 5)"
|
||||
cyan="$(tput setaf 6)"
|
||||
white="$(tput setaf 7)"
|
||||
reset="$(tput sgr0)"
|
||||
fi
|
||||
bold='\033[1m'
|
||||
black='\033[0;30m'
|
||||
red='\033[0;31m'
|
||||
green='\033[0;32m'
|
||||
yellow='\033[0;33m'
|
||||
blue='\033[0;34m'
|
||||
magenta='\033[0;35m'
|
||||
cyan='\033[0;36m'
|
||||
white='\033[0;37m'
|
||||
reset='\033[0m'
|
||||
|
||||
# you can change these
|
||||
lc="${reset}${bold}${blue}" # labels
|
||||
@@ -61,8 +58,7 @@ c0="${reset}${blue}" # first color
|
||||
|
||||
## OUTPUT
|
||||
|
||||
cat <<EOF
|
||||
|
||||
printf "
|
||||
${c0} /\\ ${nc}${USER}${ic}@${nc}${host}${reset}
|
||||
${c0} / \\ ${lc}OS: ${ic}${os}${reset}
|
||||
${c0} / /\\ \\ /\\ ${lc}KERNEL: ${ic}${kernel}${reset}
|
||||
@@ -71,4 +67,4 @@ ${c0} / / \\ \\/\\ \\ ${lc}PACKAGES: ${ic}${packages}${reset}
|
||||
${c0} / / /| \\ \\ \\ \\ ${lc}SHELL: ${ic}${shell}${reset}
|
||||
${c0} /_/ /_| \\_\\ \\_\\ ${lc}${uitype}: ${ic}${ui}${reset}
|
||||
|
||||
EOF
|
||||
"
|
||||
Reference in new issue
Block a user