Skip to content

Commit

Permalink
Changes to the powerline-icon theme
Browse files Browse the repository at this point in the history
  • Loading branch information
TheWatcherMultiversal authored Jan 8, 2024
1 parent dd1d601 commit eaefae9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 5 additions & 1 deletion themes/powerline-icon/powerline-icon.base.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ function __powerline_cwd_prompt {
}

function __powerline_last_status_prompt {
[[ "$1" -ne 0 ]] && echo "${1}|${LAST_STATUS_THEME_PROMPT_COLOR}" || echo "✅|${LAST_STATUS_THEME_PROMPT_COLOR_2}"
if [[ "$1" -ne 0 ]]; then
echo "${1}|${LAST_STATUS_THEME_PROMPT_COLOR}"
else
echo "✅|${LAST_STATUS_THEME_PROMPT_COLOR_SUCCESS}"
fi
}
3 changes: 1 addition & 2 deletions themes/powerline-icon/powerline-icon.theme.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ RUBY_CHAR=${POWERLINE_RUBY_CHAR:="❲r❳ "}
CWD_THEME_PROMPT_COLOR=30

LAST_STATUS_THEME_PROMPT_COLOR=52
LAST_STATUS_THEME_PROMPT_COLOR_SUCCESS=42

CLOCK_THEME_PROMPT_COLOR=240

Expand All @@ -49,7 +50,5 @@ IN_VIM_THEME_PROMPT_TEXT="vim"

POWERLINE_PROMPT=${POWERLINE_PROMPT:="user_info scm python_venv ruby cwd"}

LAST_STATUS_THEME_PROMPT_COLOR_2=42

function _omb_theme_PROMPT_COMMAND { __powerline_prompt_command "$@"; }
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND

0 comments on commit eaefae9

Please sign in to comment.