Skip to content

Commit

Permalink
tweaks dracula color on server
Browse files Browse the repository at this point in the history
  • Loading branch information
gzagatti committed May 11, 2023
1 parent 862c170 commit 03ad63d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions shells/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion shells/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 03ad63d

Please sign in to comment.