summaryrefslogtreecommitdiff
path: root/zsh
diff options
context:
space:
mode:
authorGitIR <git@zachir.xyz>2025-08-14 13:06:35 -0500
committerGitIR <git@zachir.xyz>2025-08-14 13:06:35 -0500
commit8a6620de6e5b8adb1054d40d0258e379503e0855 (patch)
treee86d14be7c88ac317cb2b205bc8536603ff11f80 /zsh
parentc23f4d13c4d1dcd51aa517385a3f05d364ce839e (diff)
parent9096926608099642e3053d7337a90e855eb7ce9f (diff)
Merge branch 'master' into rai-masterrai-master
Diffstat (limited to 'zsh')
-rw-r--r--zsh/.zshrc9
1 files changed, 7 insertions, 2 deletions
diff --git a/zsh/.zshrc b/zsh/.zshrc
index d284d1d..29767b4 100644
--- a/zsh/.zshrc
+++ b/zsh/.zshrc
@@ -44,13 +44,18 @@ bindkey "${key[End]}" end-of-line
bindkey "${key[PageUp]}" history-substring-search-up
bindkey "${key[PageDown]}" history-substring-search-down
+[ -f "$ZDOTDIR/.zsh_theme" ] && . "$ZDOTDIR/.zsh_theme"
+COLOR1="${COLOR1:-002}"
+COLOR2="${COLOR2:-006}"
+COLORV="${COLORV:-012}"
+
if (env | grep -Fq 'DISTROBOX'); then
MYPROMPT=$'%F{000}%K{004}[%n@%m]%F{013}\UE0B2%K{013}%F{000}%~%F{013}%K{004}\UE0B0%F{000}%#%F{004}%k\UE0B0%f '
else
- MYPROMPT=$'%F{000}%K{002}[%n@%m]%F{006}\UE0B2%K{006}%F{000}%~%F{006}%K{002}\UE0B0%F{000}%#%F{002}%k\UE0B0%f '
+ MYPROMPT=$'%F{000}%K{'"$COLOR1"$'}[%n@%m]%F{'"$COLOR2"$'}\UE0B2%K{'"$COLOR2"$'}%F{000}%~%F{'"$COLOR2"$'}%K{'"$COLOR1"$'}\UE0B0%F{000}%#%F{'"$COLOR1"$'}%k\UE0B0%f '
fi
function zle-line-init zle-keymap-select {
- VIM_PROMPT=$'%F{000}%K{012}[%n@%m]%F{006}\UE0B2%K{006}%F{000}%~%F{006}%K{012}\UE0B0%F{000}%#%F{012}%k\UE0B0%f '
+ VIM_PROMPT=$'%F{000}%K{'"$COLORV"$'}[%n@%m]%F{'"$COLOR2"$'}\UE0B2%K{'"$COLOR2"$'}%F{000}%~%F{'"$COLOR2"$'}%K{'"$COLORV"$'}\UE0B0%F{000}%#%F{'"$COLORV"$'}%k\UE0B0%f '
PS1="${${KEYMAP/vicmd/$VIM_PROMPT}/main/$MYPROMPT}"
zle reset-prompt
}