aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDerek Taylor <derek@distrotube.com>2021-05-08 15:29:32 +0000
committerDerek Taylor <derek@distrotube.com>2021-05-08 15:29:32 +0000
commitfe78cafabc291cbe22cf8cd59c8b89bf0fa0e6f6 (patch)
tree0d0a404e03be146359ed65e3b93c5211704759fe
parentMinor edit to PKGBUILD. (diff)
parentAdd debian colorscript (diff)
Merge branch 'master' into 'master'
Add debian colorscript See merge request dwt1/shell-color-scripts!8
-rwxr-xr-xcolorscripts/debian39
1 files changed, 39 insertions, 0 deletions
diff --git a/colorscripts/debian b/colorscripts/debian
new file mode 100755
index 0000000..fe26bde
--- /dev/null
+++ b/colorscripts/debian
@@ -0,0 +1,39 @@
+#!/bin/sh
+# Based on ufetch-debian
+# https://gitlab.com/jschx/ufetch/-/blob/master/ufetch-debian
+
+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
+
+# you can change these
+ic="${reset}" # info
+c0="${reset}${red}"
+c1="${reset}${green}"
+c2="${reset}${yellow}"
+c3="${reset}${blue}"
+c4="${reset}${magenta}"
+c5="${reset}${cyan}"
+
+## OUTPUT
+
+cat <<EOF
+
+${c0} ,---._ ${c1} ,---._ ${c2} ,---._ ${c3} ,---._ ${c4} ,---._ ${c5} ,---._
+${c0} /\` __ \\ ${c1} /\` __ \\ ${c2} /\` __ \\ ${c3} /\` __ \\ ${c4} /\` __ \\ ${c5} /\` __ \\
+${c0} | / | ${c1} | / | ${c2} | / | ${c3} | / | ${c4} | / | ${c5} | / |
+${c0} | \`.__.\` ${c1} | \`.__.\` ${c2} | \`.__.\` ${c3} | \`.__.\` ${c4} | \`.__.\` ${c5} | \`.__.\`
+${c0} \ ${c1} \ ${c2} \ ${c3} \ ${c4} \ ${c5} \
+${c0} \`-,_ ${c1} \`-,_ ${c2} \`-,_ ${c3} \`-,_ ${c4} \`-,_ ${c5} \`-,_
+
+EOF
+