mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 13:14:35 +00:00
Add handle for TTY prompt colors
This commit is contained in:
parent
085c9d8629
commit
79f32e241d
|
@ -3,13 +3,25 @@
|
||||||
# hide EOL sign ('%')
|
# hide EOL sign ('%')
|
||||||
export PROMPT_EOL_MARK=""
|
export PROMPT_EOL_MARK=""
|
||||||
|
|
||||||
# Color definition
|
# TTY (pure linux) terminal only has 8-bit color support
|
||||||
GREEN="%F{047}"
|
# (unless you change it in kernel), respect this and downgrade
|
||||||
RED="%F{196}"
|
# the color scheme accordingly (it won't look best, but it's
|
||||||
ORANGE="%F{214}"
|
# still better than no colors)
|
||||||
BLUE="%F{027}"
|
if [ $TERM = "linux" ]; then
|
||||||
LBLUE="%F{075}"
|
GREEN="%F{002}"
|
||||||
PURPLE="%F{105}"
|
RED="%F{001}"
|
||||||
|
ORANGE="%F{003}"
|
||||||
|
BLUE="%F{004}"
|
||||||
|
LBLUE="%F{006}"
|
||||||
|
PURPLE="%F{005}"
|
||||||
|
else
|
||||||
|
GREEN="%F{047}"
|
||||||
|
RED="%F{196}"
|
||||||
|
ORANGE="%F{214}"
|
||||||
|
BLUE="%F{027}"
|
||||||
|
LBLUE="%F{075}"
|
||||||
|
PURPLE="%F{105}"
|
||||||
|
fi
|
||||||
RESET="%f"
|
RESET="%f"
|
||||||
|
|
||||||
# Signals git status of CWD repository (if any)
|
# Signals git status of CWD repository (if any)
|
||||||
|
|
Loading…
Reference in a new issue