themes: change black foregrounds to gray for dark terminals

This commit is contained in:
Koichi Murase
2022-02-05 11:43:33 +09:00
parent 5e9c2d99f0
commit 8797ea3c2f
5 changed files with 14 additions and 6 deletions

View File

@@ -11,7 +11,10 @@ GIT_THEME_PROMPT_SUFFIX="${_omb_prompt_green}|"
# Nicely formatted terminal prompt
function _omb_theme_PROMPT_COMMAND(){
export PS1="\n${_omb_prompt_bold_black}[${_omb_prompt_navy}\@${_omb_prompt_bold_black}]-${_omb_prompt_bold_black}[${_omb_prompt_green}\u${_omb_prompt_olive}@${_omb_prompt_green}\h${_omb_prompt_bold_black}]-${_omb_prompt_bold_black}[${_omb_prompt_purple}\w${_omb_prompt_bold_black}]-$(scm_prompt_info)\n${_omb_prompt_reset_color}\$ "
PS1="\n${_omb_prompt_bold_gray}[${_omb_prompt_navy}\@${_omb_prompt_bold_gray}]-"
PS1+="${_omb_prompt_bold_gray}[${_omb_prompt_green}\u${_omb_prompt_olive}@${_omb_prompt_green}\h${_omb_prompt_bold_gray}]-"
PS1+="${_omb_prompt_bold_gray}[${_omb_prompt_purple}\w${_omb_prompt_bold_gray}]-"
PS1+="$(scm_prompt_info)\n${_omb_prompt_reset_color}\$ "
}
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND

View File

@@ -27,7 +27,12 @@ scm_prompt() {
}
_omb_theme_PROMPT_COMMAND() {
PS1="${_omb_prompt_white}${_omb_prompt_background_navy} \u${_omb_prompt_normal}${_omb_prompt_background_navy}@${_omb_prompt_brown}${_omb_prompt_background_navy}\h $(clock_prompt) ${_omb_prompt_reset_color}${_omb_prompt_normal} $(battery_charge)\n${_omb_prompt_bold_black}${_omb_prompt_background_white} \w ${_omb_prompt_normal}$(scm_prompt)$(is_vim_shell)\n${_omb_prompt_white}>${_omb_prompt_normal} "
PS1="${_omb_prompt_white}${_omb_prompt_background_navy} \u${_omb_prompt_normal}"
PS1+="${_omb_prompt_background_navy}@${_omb_prompt_brown}${_omb_prompt_background_navy}\h $(clock_prompt) ${_omb_prompt_reset_color}"
PS1+="${_omb_prompt_normal} $(battery_charge)\n"
PS1+="${_omb_prompt_bold_black}${_omb_prompt_background_white} \w "
PS1+="${_omb_prompt_normal}$(scm_prompt)$(is_vim_shell)\n"
PS1+="${_omb_prompt_white}>${_omb_prompt_normal} "
}
THEME_CLOCK_COLOR=${THEME_CLOCK_COLOR:-"$_omb_prompt_navy$_omb_prompt_background_white"}

View File

@@ -41,7 +41,7 @@ function _omb_theme_PROMPT_COMMAND() {
# This needs to be first to save last command return code
local RC="$?"
local hostname="${_omb_prompt_bold_black}\u@\h"
local hostname="${_omb_prompt_bold_gray}\u@\h"
local python_venv; _omb_prompt_get_python_venv
python_venv=$_omb_prompt_white$python_venv

View File

@@ -35,7 +35,7 @@ function _omb_theme_PROMPT_COMMAND() {
# This needs to be first to save last command return code
local RC="$?"
local hostname="${_omb_prompt_bold_black}\u"
local hostname="${_omb_prompt_bold_gray}\u"
local python_venv; _omb_prompt_get_python_venv
python_venv=$_omb_prompt_white$python_venv

View File

@@ -11,9 +11,9 @@ _omb_theme_PROMPT_COMMAND() {
history -c
history -r
# displays user@server in purple
# PS1="$_omb_prompt_brown$(scm_char) $_omb_prompt_purple\u@\h$_omb_prompt_reset_color:$_omb_prompt_navy\w$_omb_prompt_olive$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_black\$$_omb_prompt_reset_color "
# PS1="$_omb_prompt_brown$(scm_char) $_omb_prompt_purple\u@\h$_omb_prompt_reset_color:$_omb_prompt_navy\w$_omb_prompt_olive$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_gray\$$_omb_prompt_reset_color "
# no user@server
PS1="$_omb_prompt_brown$(scm_char) $_omb_prompt_navy\w$_omb_prompt_olive$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_black\$$_omb_prompt_reset_color "
PS1="$_omb_prompt_brown$(scm_char) $_omb_prompt_navy\w$_omb_prompt_olive$(scm_prompt_info)$(_omb_prompt_print_ruby_env) $_omb_prompt_gray\$$_omb_prompt_reset_color "
PS2='> '
PS4='+ '
}