From 960a05363ae9c0b767d57405cfffe9f8a6b021cd Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Sat, 21 Feb 2026 17:11:05 -0500 Subject: refactor(zsh): Restructured common shell files Restructured common shell files to be in a utils directory. Operating System specific files are in the util/OS_NAME/ directories. --- .config/shells/utils/colorsrc | 45 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100755 .config/shells/utils/colorsrc (limited to '.config/shells/utils/colorsrc') diff --git a/.config/shells/utils/colorsrc b/.config/shells/utils/colorsrc new file mode 100755 index 0000000..506f67e --- /dev/null +++ b/.config/shells/utils/colorsrc @@ -0,0 +1,45 @@ +#!/bin/sh +## Reset to normal: \033[0m +NORM="\033[0m" + +## Colors: +BLACK="\033[0;30m" +GRAY="\033[1;30m" +RED="\033[0;31m" +LRED="\033[1;31m" +GREEN="\033[0;32m" +LGREEN="\033[1;32m" +YELLOW="\033[0;33m" +LYELLOW="\033[1;33m" +BLUE="\033[0;34m" +LBLUE="\033[1;34m" +PURPLE="\033[0;35m" +PINK="\033[1;35m" +CYAN="\033[0;36m" +LCYAN="\033[1;36m" +LGRAY="\033[0;37m" +WHITE="\033[1;37m" + +## Backgrounds +BLACKB="\033[0;40m" +REDB="\033[0;41m" +GREENB="\033[0;42m" +YELLOWB="\033[0;43m" +BLUEB="\033[0;44m" +PURPLEB="\033[0;45m" +CYANB="\033[0;46m" +GREYB="\033[0;47m" + +## Attributes: +UNDERLINE="\033[4m" +BOLD="\033[1m" +INVERT="\033[7m" + +## Cursor movements +CUR_UP="\033[1A" +CUR_DN="\033[1B" +CUR_LEFT="\033[1D" +CUR_RIGHT="\033[1C" + +## Start of display (top left) +SOD="\033[1;1f" -- cgit v1.2.3