mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-05 01:46:46 +01:00
Clean up appearance lib file and redundant colors calls in other files
This commit is contained in:
parent
51946eb3ce
commit
2193135ebc
13 changed files with 12 additions and 39 deletions
|
|
@ -63,10 +63,7 @@ setprompt () {
|
|||
###
|
||||
# See if we can use colors.
|
||||
|
||||
autoload colors zsh/terminfo
|
||||
if [[ "$terminfo[colors]" -ge 8 ]]; then
|
||||
colors
|
||||
fi
|
||||
autoload zsh/terminfo
|
||||
for color in RED GREEN YELLOW BLUE MAGENTA CYAN WHITE; do
|
||||
eval PR_$color='%{$terminfo[bold]$fg[${(L)color}]%}'
|
||||
eval PR_LIGHT_$color='%{$fg[${(L)color}]%}'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue