From 900d5813b6b7e55b0293fc2de607791067bd2d44 Mon Sep 17 00:00:00 2001 From: Dawid Potocki Date: Mon, 14 Jan 2019 15:01:47 +1300 Subject: [PATCH 1/5] Fix (mostly Debian-based) not using $nc color at all --- ufetch-debian | 2 +- ufetch-elementary | 2 +- ufetch-linuxlite | 2 +- ufetch-mint | 2 +- ufetch-mxlinux | 2 +- ufetch-nixos | 2 +- ufetch-popos | 6 +++--- ufetch-pureos | 2 +- ufetch-raspbian | 2 +- ufetch-ubuntu | 2 +- ufetch-voyager | 2 +- 11 files changed, 13 insertions(+), 13 deletions(-) diff --git a/ufetch-debian b/ufetch-debian index b838267..e6f8f46 100755 --- a/ufetch-debian +++ b/ufetch-debian @@ -54,7 +54,7 @@ c1="${reset}${red}" # second color cat < ${c1}/ ${c0}/ ${lc}UPTIME: ${ic}${uptime}${reset} diff --git a/ufetch-mint b/ufetch-mint index e17372f..dcdc06a 100755 --- a/ufetch-mint +++ b/ufetch-mint @@ -54,7 +54,7 @@ c1="${reset}${bold}${white}" # second color cat < Date: Mon, 14 Jan 2019 15:26:24 +1300 Subject: [PATCH 2/5] Replace ${SHELL} with "$SHELL" to fix SC2086 (shellcheck) --- ufetch-alpine | 2 +- ufetch-antergos | 2 +- ufetch-arch | 2 +- ufetch-archbang | 2 +- ufetch-arco | 2 +- ufetch-artix | 2 +- ufetch-aux | 2 +- ufetch-centos | 2 +- ufetch-crux | 2 +- ufetch-debian | 2 +- ufetch-elementary | 2 +- ufetch-fedora | 2 +- ufetch-freebsd | 2 +- ufetch-gentoo | 2 +- ufetch-linux | 2 +- ufetch-linuxlite | 2 +- ufetch-macos | 2 +- ufetch-mageia | 2 +- ufetch-manjaro | 2 +- ufetch-mint | 2 +- ufetch-mxlinux | 2 +- ufetch-nixos | 2 +- ufetch-openbsd | 2 +- ufetch-parabola | 2 +- ufetch-popos | 2 +- ufetch-pureos | 2 +- ufetch-raspbian | 2 +- ufetch-slackware | 2 +- ufetch-suse | 2 +- ufetch-ubuntu | 2 +- ufetch-void | 2 +- ufetch-voyager | 2 +- 32 files changed, 32 insertions(+), 32 deletions(-) diff --git a/ufetch-alpine b/ufetch-alpine index ea0ebe0..81198ba 100755 --- a/ufetch-alpine +++ b/ufetch-alpine @@ -10,7 +10,7 @@ os='Alpine Linux' kernel="$(uname -sr)" uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" packages="$(apk info | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-antergos b/ufetch-antergos index 40ff40d..bc037f3 100755 --- a/ufetch-antergos +++ b/ufetch-antergos @@ -10,7 +10,7 @@ os='Antergos' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-arch b/ufetch-arch index 34195d0..d03d3d3 100755 --- a/ufetch-arch +++ b/ufetch-arch @@ -10,7 +10,7 @@ os='Arch Linux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-archbang b/ufetch-archbang index 288baad..729dc05 100755 --- a/ufetch-archbang +++ b/ufetch-archbang @@ -10,7 +10,7 @@ os='ArchBang' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-arco b/ufetch-arco index 45c7540..d1b7ed1 100755 --- a/ufetch-arco +++ b/ufetch-arco @@ -10,7 +10,7 @@ os='ArcoLinux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-artix b/ufetch-artix index 1b06362..3ff5785 100755 --- a/ufetch-artix +++ b/ufetch-artix @@ -10,7 +10,7 @@ os='Artix Linux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-aux b/ufetch-aux index ebc888f..f06cb88 100755 --- a/ufetch-aux +++ b/ufetch-aux @@ -9,7 +9,7 @@ host=`hostname` os=`uname -sr` kernel=`uname -v` uptime=`uptime | awk '{print $3" "$4}' | tr -d ,` -shell=`basename ${SHELL}` +shell=`basename "$SHELL"` ## DEFINE COLORS diff --git a/ufetch-centos b/ufetch-centos index cedf6c3..d285fdf 100755 --- a/ufetch-centos +++ b/ufetch-centos @@ -10,7 +10,7 @@ os="$(cat /etc/centos-release | sed 's/release //')" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(yum list installed | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-crux b/ufetch-crux index 3c8a6ba..10036bc 100755 --- a/ufetch-crux +++ b/ufetch-crux @@ -10,7 +10,7 @@ os="$(crux)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pkginfo -i | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-debian b/ufetch-debian index e6f8f46..17e2be0 100755 --- a/ufetch-debian +++ b/ufetch-debian @@ -10,7 +10,7 @@ os='Debian' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-elementary b/ufetch-elementary index 3760ab9..9eb4250 100755 --- a/ufetch-elementary +++ b/ufetch-elementary @@ -10,7 +10,7 @@ os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-fedora b/ufetch-fedora index 132da59..e43f256 100755 --- a/ufetch-fedora +++ b/ufetch-fedora @@ -10,7 +10,7 @@ os="$(cat /etc/fedora-release)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(yum list installed | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-freebsd b/ufetch-freebsd index cd3ebc1..c359f0e 100755 --- a/ufetch-freebsd +++ b/ufetch-freebsd @@ -10,7 +10,7 @@ os="$(uname -sr)" kernel="$(uname -iK)" uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" packages="$(pkg info | wc -l | sed -e 's/^[ \t]*//')" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-gentoo b/ufetch-gentoo index 1a47af9..fdebf3c 100755 --- a/ufetch-gentoo +++ b/ufetch-gentoo @@ -10,7 +10,7 @@ os='Gentoo Linux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(ls -d /var/db/pkg/*/* | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-linux b/ufetch-linux index 7e92a25..9b066aa 100755 --- a/ufetch-linux +++ b/ufetch-linux @@ -9,7 +9,7 @@ host="$(hostname)" os='Linux' # I'd just like to interject for a moment... kernel="$(uname -sr)" uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-linuxlite b/ufetch-linuxlite index 082a12e..f35bf61 100755 --- a/ufetch-linuxlite +++ b/ufetch-linuxlite @@ -10,7 +10,7 @@ os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-macos b/ufetch-macos index 5b5078b..05ab3ce 100755 --- a/ufetch-macos +++ b/ufetch-macos @@ -21,7 +21,7 @@ else packages='no package manager' fi packages="$(echo ${packages} | sed -e 's/^[ /t]*//')" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then WM='Quartz Compositor' fi diff --git a/ufetch-mageia b/ufetch-mageia index a0f67ff..b9e8249 100755 --- a/ufetch-mageia +++ b/ufetch-mageia @@ -9,7 +9,7 @@ os="$(lsb_release -ds | tr -d \")" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(yum list installed | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-manjaro b/ufetch-manjaro index 5cd780a..8ab10f0 100755 --- a/ufetch-manjaro +++ b/ufetch-manjaro @@ -10,7 +10,7 @@ os='Manjaro' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-mint b/ufetch-mint index dcdc06a..4a9f2cf 100755 --- a/ufetch-mint +++ b/ufetch-mint @@ -10,7 +10,7 @@ os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-mxlinux b/ufetch-mxlinux index 2810269..c5f06d8 100755 --- a/ufetch-mxlinux +++ b/ufetch-mxlinux @@ -10,7 +10,7 @@ os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-nixos b/ufetch-nixos index 126822f..7502e65 100755 --- a/ufetch-nixos +++ b/ufetch-nixos @@ -10,7 +10,7 @@ os="$(nixos-version)" kernel="$(uname -sr)" uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" packages="$(ls -d -1 /nix/store/ | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-openbsd b/ufetch-openbsd index 3c61e62..1aed1a9 100755 --- a/ufetch-openbsd +++ b/ufetch-openbsd @@ -10,7 +10,7 @@ os="$(uname -sr)" kernel="$(uname -v)" uptime="$(uptime | awk -F, '{sub(".*up ",x,$1);print $1}' | sed -e 's/^[ \t]*//')" packages="$(ls -d /var/db/pkg/* | wc -l | sed -e 's/^[ \t]*//')" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-parabola b/ufetch-parabola index 83eef7d..22cd44a 100755 --- a/ufetch-parabola +++ b/ufetch-parabola @@ -10,7 +10,7 @@ os='Parabola GNU/Linux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(pacman -Q | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-popos b/ufetch-popos index e542d5e..9cf2fe6 100755 --- a/ufetch-popos +++ b/ufetch-popos @@ -10,7 +10,7 @@ os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-pureos b/ufetch-pureos index e796ee9..94c6f41 100755 --- a/ufetch-pureos +++ b/ufetch-pureos @@ -10,7 +10,7 @@ os='PureOS' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-raspbian b/ufetch-raspbian index 2d3b6f7..c31ac91 100755 --- a/ufetch-raspbian +++ b/ufetch-raspbian @@ -10,7 +10,7 @@ os='Raspbian' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-slackware b/ufetch-slackware index e758f3a..2fc2f02 100755 --- a/ufetch-slackware +++ b/ufetch-slackware @@ -10,7 +10,7 @@ os="$(cat /etc/slackware-version)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(ls /var/log/packages | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-suse b/ufetch-suse index ac2c502..c81227b 100755 --- a/ufetch-suse +++ b/ufetch-suse @@ -10,7 +10,7 @@ os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(rpm -qa --last | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-ubuntu b/ufetch-ubuntu index 5d9c724..8b195d4 100755 --- a/ufetch-ubuntu +++ b/ufetch-ubuntu @@ -10,7 +10,7 @@ os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-void b/ufetch-void index 19cc6f4..5d127ff 100755 --- a/ufetch-void +++ b/ufetch-void @@ -10,7 +10,7 @@ os='Void Linux' kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(xbps-query -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then diff --git a/ufetch-voyager b/ufetch-voyager index 5a1e44f..d596fdb 100755 --- a/ufetch-voyager +++ b/ufetch-voyager @@ -10,7 +10,7 @@ os="Voyager Live $(lsb_release -r | awk '{print $2}')" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(dpkg -l | wc -l)" -shell="$(basename ${SHELL})" +shell="$(basename "$SHELL")" if [ -z "${WM}" ]; then if [ "${XDG_CURRENT_DESKTOP}" ]; then From a052132bbb237ca343760351d7cf4f08901cc177 Mon Sep 17 00:00:00 2001 From: Dawid Potocki Date: Mon, 14 Jan 2019 15:47:41 +1300 Subject: [PATCH 3/5] Replace tabs with spaces for consistency (indenting is still tabs) --- ufetch-alpine | 9 ++++----- ufetch-antergos | 10 +++++----- ufetch-arch | 8 ++++---- ufetch-archbang | 8 ++++---- ufetch-arco | 8 ++++---- ufetch-artix | 12 ++++++------ ufetch-aux | 8 ++++---- ufetch-centos | 14 +++++++------- ufetch-crux | 12 ++++++------ ufetch-debian | 10 +++++----- ufetch-elementary | 10 +++++----- ufetch-fedora | 10 +++++----- ufetch-freebsd | 10 +++++----- ufetch-gentoo | 10 +++++----- ufetch-linux | 12 ++++++------ ufetch-linuxlite | 10 +++++----- ufetch-macos | 8 ++++---- ufetch-mageia | 10 +++++----- ufetch-manjaro | 8 ++++---- ufetch-mint | 10 +++++----- ufetch-mxlinux | 8 ++++---- ufetch-nixos | 10 +++++----- ufetch-openbsd | 12 ++++++------ ufetch-parabola | 9 ++++----- ufetch-popos | 8 ++++---- ufetch-pureos | 8 ++++---- ufetch-raspbian | 10 +++++----- ufetch-suse | 8 ++++---- ufetch-ubuntu | 8 ++++---- ufetch-void | 10 +++++----- ufetch-voyager | 8 ++++---- 31 files changed, 147 insertions(+), 149 deletions(-) diff --git a/ufetch-alpine b/ufetch-alpine index 81198ba..d9a50c1 100755 --- a/ufetch-alpine +++ b/ufetch-alpine @@ -44,11 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${blue}" # first color -c1="${reset}${white}" # second color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${blue}" # first color ## OUTPUT diff --git a/ufetch-antergos b/ufetch-antergos index bc037f3..8524545 100755 --- a/ufetch-antergos +++ b/ufetch-antergos @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${blue}" # first color -c1="${reset}${bold}${white}" # second color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${blue}" # first color +c1="${reset}${bold}${white}" # second color ## OUTPUT diff --git a/ufetch-arch b/ufetch-arch index d03d3d3..3d8e994 100755 --- a/ufetch-arch +++ b/ufetch-arch @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${blue}" # first color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${blue}" # first color ## OUTPUT diff --git a/ufetch-archbang b/ufetch-archbang index 729dc05..703a786 100755 --- a/ufetch-archbang +++ b/ufetch-archbang @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${blue}" # first color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${blue}" # first color ## OUTPUT diff --git a/ufetch-arco b/ufetch-arco index d1b7ed1..59f1f6b 100755 --- a/ufetch-arco +++ b/ufetch-arco @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${blue}" # first color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${blue}" # first color ## OUTPUT diff --git a/ufetch-artix b/ufetch-artix index 3ff5785..78deec2 100755 --- a/ufetch-artix +++ b/ufetch-artix @@ -44,12 +44,12 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${cyan}" # labels -nc="${reset}${bold}${cyan}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${cyan}" # first color -c1="${reset}${bold}${blue}" # second color -c2="${reset}${bold}${green}" # third color +lc="${reset}${bold}${cyan}" # labels +nc="${reset}${bold}${cyan}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${cyan}" # first color +c1="${reset}${bold}${blue}" # second color +c2="${reset}${bold}${green}" # third color ## OUTPUT diff --git a/ufetch-aux b/ufetch-aux index f06cb88..ba7bf24 100755 --- a/ufetch-aux +++ b/ufetch-aux @@ -18,10 +18,10 @@ bold=`tput bold` reset=`tput sgr0` # you can change these -lc="${reset}${bold}" # labels -nc="${reset}${bold}" # user and hostname -ic="${reset}" # info -c0="${reset}" # first color +lc="${reset}${bold}" # labels +nc="${reset}${bold}" # user and hostname +ic="${reset}" # info +c0="${reset}" # first color ## OUTPUT diff --git a/ufetch-centos b/ufetch-centos index d285fdf..e2cb57c 100755 --- a/ufetch-centos +++ b/ufetch-centos @@ -44,13 +44,13 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${magenta}" # labels -nc="${reset}${bold}${magenta}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${green}" # first color -c1="${reset}${bold}${yellow}" # second color -c2="${reset}${bold}${magenta}" # third color -c3="${reset}${bold}${blue}" # fourth color +lc="${reset}${bold}${magenta}" # labels +nc="${reset}${bold}${magenta}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${green}" # first color +c1="${reset}${bold}${yellow}" # second color +c2="${reset}${bold}${magenta}" # third color +c3="${reset}${bold}${blue}" # fourth color ## OUTPUT diff --git a/ufetch-crux b/ufetch-crux index 10036bc..2dd5d95 100755 --- a/ufetch-crux +++ b/ufetch-crux @@ -44,12 +44,12 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${cyan}" # labels -nc="${reset}${bold}${cyan}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${cyan}" # first color -c1="${reset}${white}" # second color -c2="${reset}${yellow}" # third color +lc="${reset}${bold}${cyan}" # labels +nc="${reset}${bold}${cyan}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${cyan}" # first color +c1="${reset}${white}" # second color +c2="${reset}${yellow}" # third color ## OUTPUT diff --git a/ufetch-debian b/ufetch-debian index 17e2be0..9f9d6f2 100755 --- a/ufetch-debian +++ b/ufetch-debian @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${red}" # labels -nc="${reset}${bold}${red}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${red}" # first color -c1="${reset}${red}" # second color +lc="${reset}${bold}${red}" # labels +nc="${reset}${bold}${red}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${red}" # first color +c1="${reset}${red}" # second color ## OUTPUT diff --git a/ufetch-elementary b/ufetch-elementary index 9eb4250..3f7aa8c 100755 --- a/ufetch-elementary +++ b/ufetch-elementary @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${white}" # first color -c1="${reset}${white}" # second color +lc="${reset}${bold}${green}" # labels +nc="${reset}${bold}${green}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${white}" # first color +c1="${reset}${white}" # second color ## OUTPUT diff --git a/ufetch-fedora b/ufetch-fedora index e43f256..75f0b95 100755 --- a/ufetch-fedora +++ b/ufetch-fedora @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${white}" # first color -c1="${reset}${bold}${cyan}" # second color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${white}" # first color +c1="${reset}${bold}${cyan}" # second color ## OUTPUT diff --git a/ufetch-freebsd b/ufetch-freebsd index c359f0e..4d9f002 100755 --- a/ufetch-freebsd +++ b/ufetch-freebsd @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${red}" # labels -nc="${reset}${bold}${red}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${red}" # first color -c1="${reset}${red}" # second color +lc="${reset}${bold}${red}" # labels +nc="${reset}${bold}${red}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${red}" # first color +c1="${reset}${red}" # second color ## OUTPUT diff --git a/ufetch-gentoo b/ufetch-gentoo index fdebf3c..6a5cb11 100755 --- a/ufetch-gentoo +++ b/ufetch-gentoo @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${magenta}" # labels -nc="${reset}${bold}${magenta}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${magenta}" # first color -c1="${reset}${magenta}" # second color +lc="${reset}${bold}${magenta}" # labels +nc="${reset}${bold}${magenta}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${magenta}" # first color +c1="${reset}${magenta}" # second color ## OUTPUT diff --git a/ufetch-linux b/ufetch-linux index 9b066aa..8c7f23b 100755 --- a/ufetch-linux +++ b/ufetch-linux @@ -43,12 +43,12 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${black}" # labels -nc="${reset}${bold}${black}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${black}" # first color -c1="${reset}${white}" # second color -c2="${reset}${yellow}" # third color +lc="${reset}${bold}${black}" # labels +nc="${reset}${bold}${black}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${black}" # first color +c1="${reset}${white}" # second color +c2="${reset}${yellow}" # third color ## OUTPUT diff --git a/ufetch-linuxlite b/ufetch-linuxlite index f35bf61..cf8f8c6 100755 --- a/ufetch-linuxlite +++ b/ufetch-linuxlite @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${yellow}" # first color -c1="${reset}${bold}${white}" # second color +lc="${reset}${bold}${yellow}" # labels +nc="${reset}${bold}${yellow}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${yellow}" # first color +c1="${reset}${bold}${white}" # second color ## OUTPUT diff --git a/ufetch-macos b/ufetch-macos index 05ab3ce..648cc34 100755 --- a/ufetch-macos +++ b/ufetch-macos @@ -43,10 +43,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}" # labels -nc="${reset}${bold}" # user and hostname -ic="${reset}" # info -c0="${reset}" # first color +lc="${reset}${bold}" # labels +nc="${reset}${bold}" # user and hostname +ic="${reset}" # info +c0="${reset}" # first color ## OUTPUT diff --git a/ufetch-mageia b/ufetch-mageia index b9e8249..eb1c15d 100755 --- a/ufetch-mageia +++ b/ufetch-mageia @@ -43,11 +43,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${white}" # first color -c1="${reset}${bold}${cyan}" # second color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${white}" # first color +c1="${reset}${bold}${cyan}" # second color ## OUTPUT diff --git a/ufetch-manjaro b/ufetch-manjaro index 8ab10f0..d09c7ed 100755 --- a/ufetch-manjaro +++ b/ufetch-manjaro @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${green}" # first color +lc="${reset}${bold}${green}" # labels +nc="${reset}${bold}${green}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${green}" # first color ## OUTPUT diff --git a/ufetch-mint b/ufetch-mint index 4a9f2cf..7ab4c1a 100755 --- a/ufetch-mint +++ b/ufetch-mint @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${green}" # first color -c1="${reset}${bold}${white}" # second color +lc="${reset}${bold}${green}" # labels +nc="${reset}${bold}${green}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${green}" # first color +c1="${reset}${bold}${white}" # second color ## OUTPUT diff --git a/ufetch-mxlinux b/ufetch-mxlinux index c5f06d8..948038a 100755 --- a/ufetch-mxlinux +++ b/ufetch-mxlinux @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${white}" # labels -nc="${reset}${bold}${white}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${white}" # first color +lc="${reset}${bold}${white}" # labels +nc="${reset}${bold}${white}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${white}" # first color ## OUTPUT diff --git a/ufetch-nixos b/ufetch-nixos index 7502e65..31e8af5 100755 --- a/ufetch-nixos +++ b/ufetch-nixos @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${blue}" # first color -c1="${reset}${bold}${blue}" # second color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${blue}" # first color +c1="${reset}${bold}${blue}" # second color ## OUTPUT diff --git a/ufetch-openbsd b/ufetch-openbsd index 1aed1a9..df6f1de 100755 --- a/ufetch-openbsd +++ b/ufetch-openbsd @@ -44,12 +44,12 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${yellow}" # first color -c1="${reset}${white}" # second color -c2="${reset}${bold}${yellow}" # third color +lc="${reset}${bold}${yellow}" # labels +nc="${reset}${bold}${yellow}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${yellow}" # first color +c1="${reset}${white}" # second color +c2="${reset}${bold}${yellow}" # third color ## OUTPUT diff --git a/ufetch-parabola b/ufetch-parabola index 22cd44a..1718e0b 100755 --- a/ufetch-parabola +++ b/ufetch-parabola @@ -44,11 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${magenta}" # labels -nc="${reset}${bold}${magenta}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${magenta}" # first color -c1="${reset}${magenta}" # second color +lc="${reset}${bold}${magenta}" # labels +nc="${reset}${bold}${magenta}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${magenta}" # first color ## OUTPUT diff --git a/ufetch-popos b/ufetch-popos index 9cf2fe6..cee32a1 100755 --- a/ufetch-popos +++ b/ufetch-popos @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${cyan}" # labels -nc="${reset}${bold}${cyan}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${cyan}" # first color +lc="${reset}${bold}${cyan}" # labels +nc="${reset}${bold}${cyan}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${cyan}" # first color ## OUTPUT diff --git a/ufetch-pureos b/ufetch-pureos index 94c6f41..897e746 100755 --- a/ufetch-pureos +++ b/ufetch-pureos @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${blue}" # labels -nc="${reset}${bold}${blue}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${white}" # first color +lc="${reset}${bold}${blue}" # labels +nc="${reset}${bold}${blue}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${white}" # first color ## OUTPUT diff --git a/ufetch-raspbian b/ufetch-raspbian index c31ac91..175ec6e 100755 --- a/ufetch-raspbian +++ b/ufetch-raspbian @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${red}" # labels -nc="${reset}${bold}${red}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${green}" # first color -c1="${reset}${bold}${red}" # second color +lc="${reset}${bold}${red}" # labels +nc="${reset}${bold}${red}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${green}" # first color +c1="${reset}${bold}${red}" # second color ## OUTPUT diff --git a/ufetch-suse b/ufetch-suse index c81227b..44d4f65 100755 --- a/ufetch-suse +++ b/ufetch-suse @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${green}" # first color +lc="${reset}${bold}${green}" # labels +nc="${reset}${bold}${green}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${green}" # first color ## OUTPUT diff --git a/ufetch-ubuntu b/ufetch-ubuntu index 8b195d4..a592b1b 100755 --- a/ufetch-ubuntu +++ b/ufetch-ubuntu @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${yellow}" # first color +lc="${reset}${bold}${yellow}" # labels +nc="${reset}${bold}${yellow}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${yellow}" # first color ## OUTPUT diff --git a/ufetch-void b/ufetch-void index 5d127ff..10e2321 100755 --- a/ufetch-void +++ b/ufetch-void @@ -44,11 +44,11 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${green}" # labels -nc="${reset}${bold}${green}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${green}" # first color -c1="${reset}${green}" # second color +lc="${reset}${bold}${green}" # labels +nc="${reset}${bold}${green}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${green}" # first color +c1="${reset}${green}" # second color ## OUTPUT diff --git a/ufetch-voyager b/ufetch-voyager index d596fdb..f3bf21f 100755 --- a/ufetch-voyager +++ b/ufetch-voyager @@ -44,10 +44,10 @@ if [ -x "$(command -v tput)" ]; then fi # you can change these -lc="${reset}${bold}${yellow}" # labels -nc="${reset}${bold}${yellow}" # user and hostname -ic="${reset}${bold}${white}" # info -c0="${reset}${bold}${yellow}" # first color +lc="${reset}${bold}${yellow}" # labels +nc="${reset}${bold}${yellow}" # user and hostname +ic="${reset}${bold}${white}" # info +c0="${reset}${bold}${yellow}" # first color ## OUTPUT From a5d00accfaa35ca08169c7772fa9acce18a2b4a9 Mon Sep 17 00:00:00 2001 From: Dawid Potocki Date: Mon, 14 Jan 2019 16:04:11 +1300 Subject: [PATCH 4/5] Fix Mageia, how I make it to commit before? --- ufetch-mageia | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ufetch-mageia b/ufetch-mageia index eb1c15d..450963b 100755 --- a/ufetch-mageia +++ b/ufetch-mageia @@ -4,8 +4,9 @@ ## INFO -# user is already defined host="$(hostname)" os="$(lsb_release -ds)" -os="$(lsb_release -ds | tr -d \")" +# user is already defined +host="$(hostname)" +os="$(lsb_release -ds)" kernel="$(uname -sr)" uptime="$(uptime -p | sed 's/up //')" packages="$(yum list installed | wc -l)" From 058261e422203ca0eeb6637d08c230d414bb461e Mon Sep 17 00:00:00 2001 From: Dawid Potocki Date: Sat, 19 Jan 2019 08:53:08 +0000 Subject: [PATCH 5/5] Change 'Linux Lite' to 'linux lite' --- ufetch-linuxlite | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ufetch-linuxlite b/ufetch-linuxlite index cf8f8c6..beb266c 100755 --- a/ufetch-linuxlite +++ b/ufetch-linuxlite @@ -1,6 +1,6 @@ #!/bin/sh # -# ufetch-linuxlite - tiny system info for Linux Lite +# ufetch-linuxlite - tiny system info for linux lite ## INFO