summaryrefslogtreecommitdiff
path: root/.config/shells/utils/colorsrc
diff options
context:
space:
mode:
authorJacob McDonnell <jacob@jacobmcdonnell.com>2026-02-21 17:11:05 -0500
committerJacob McDonnell <jacob@jacobmcdonnell.com>2026-02-21 17:11:05 -0500
commit960a05363ae9c0b767d57405cfffe9f8a6b021cd (patch)
tree41aca6d3abd2aa7408b2c24f4f9ff0c08ad475cb /.config/shells/utils/colorsrc
parent8276fb9c65e40605f7d56dac3326b3f9f90c615d (diff)
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.
Diffstat (limited to '.config/shells/utils/colorsrc')
-rwxr-xr-x.config/shells/utils/colorsrc45
1 files changed, 45 insertions, 0 deletions
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"