zsh: let terminal set text colour
the prompt no longer sets the text colour which is better suited for the terminal colour scheme, as when switching between light/dark mode, the text does not blend into the background
This commit is contained in:
parent
6a7bd6c2b1
commit
f1b7a35eea
2 changed files with 1 additions and 3 deletions
|
|
@ -1,3 +1,2 @@
|
||||||
PRIMARY_COLOUR="{#{{colors.primary.default.hex_stripped}}}"
|
PRIMARY_COLOUR="{#{{colors.primary.default.hex_stripped}}}"
|
||||||
SECONDARY_COLOUR="{#{{colors.secondary.default.hex_stripped}}}"
|
SECONDARY_COLOUR="{#{{colors.secondary.default.hex_stripped}}}"
|
||||||
TEXT_COLOUR="{#{{colors.on_primary.default.hex_stripped}}}"
|
|
||||||
|
|
|
||||||
|
|
@ -30,10 +30,9 @@ if [ -f ~/.cache/zsh_colours.sh ]; then
|
||||||
else
|
else
|
||||||
PRIMARY_COLOUR="{blue}"
|
PRIMARY_COLOUR="{blue}"
|
||||||
SECONDARY_COLOUR="{yellow}"
|
SECONDARY_COLOUR="{yellow}"
|
||||||
TEXT_COLOUR="{black}"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
PROMPT="%F$PRIMARY_COLOUR%~ %F$SECONDARY_COLOUR$OSICON %k%F$TEXT_COLOUR"
|
PROMPT="%F$PRIMARY_COLOUR%~ %F$SECONDARY_COLOUR$OSICON %k%F"
|
||||||
|
|
||||||
bindkey -e
|
bindkey -e
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue