From 03ad63d35acdd9b7e635bcfdf52b3d9f9f5ad213 Mon Sep 17 00:00:00 2001 From: gzagatti Date: Thu, 11 May 2023 20:05:39 +0800 Subject: [PATCH] tweaks dracula color on server --- shells/bashrc | 6 +++--- shells/zshrc | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/shells/bashrc b/shells/bashrc index 5b0d0a5..0080038 100644 --- a/shells/bashrc +++ b/shells/bashrc @@ -213,14 +213,14 @@ if [[ $- == *i* ]]; then color='$(if [[ $? == 0 ]]; then echo "\[\e[47:5:10m\]";else echo "\[\e[38:5:1m\]\[\e[48:5:9m\]"; fi)' else color='$(if [[ $? == 0 ]]; then echo "\[\e[48:5:11m\]";else echo "\[\e[38:5:1m\]\[\e[48:5:9m\]"; fi)' - end + fi reset_color='\[\e[0m\] ' elif [[ $THEME == "dracula" ]]; then if [[ -n $SSH_CLIENT ]]; then - color='$(if [[ $? == 0 ]]; then echo "\[\e[00;32m\]";else echo "\[\e[00;31m\]"; fi)' + color='$(if [[ $? == 0 ]]; then echo "\[\e[00;35m\]";else echo "\[\e[00;31m\]"; fi)' else color='$(if [[ $? == 0 ]]; then echo "\[\e[00;30m\]";else echo "\[\e[00;31m\]"; fi)' - end + fi reset_color='\[\e[0m\] \[\e[33m\]' fi printf %s "$color$(_precmd_ps1)$info$reset_color" diff --git a/shells/zshrc b/shells/zshrc index 8d3c3e3..ff9f9a1 100644 --- a/shells/zshrc +++ b/shells/zshrc @@ -246,7 +246,7 @@ if [[ $- == *i* ]]; then LS_COLORS="no=00:fi=00:di=34::ln=32;102:so=37;107:pi=1;33:ex=31:bd=37;107:cd=37;107:su=37;107:sg=37;107:tw=35:ow=35" elif [[ $THEME == "dracula" ]]; then if [[ -n $SSH_CLIENT ]]; then - color='%(?.%F{green}.%F{red})' + color='%(?.%F{magenta}.%F{red})' else color='%(?.%F{black}.%F{red})' fi