feat(err): adds DOTMATRIX_MARK_ERROR
This commit is contained in:
parent
752173a433
commit
1a03962d42
2 changed files with 8 additions and 1 deletions
|
|
@ -312,6 +312,11 @@ interpolated from `DOTMATRIX_COLOR_LINE_START`
|
|||
to `DOTMATRIX_COLOR_LINE_END`.
|
||||
|
||||
|
||||
**DOTMATRIX_MARK_ERROR** *string = " "*
|
||||
|
||||
Icon displayed in front of the last exit error code.
|
||||
|
||||
|
||||
#### Variant Markers
|
||||
|
||||
These options are the one used to actually define the theme variants.
|
||||
|
|
|
|||
|
|
@ -30,6 +30,8 @@ _lp_dotmatrix_theme_activate() {
|
|||
DOTMATRIX_VCS_BEHIND_THRESHOLD=${DOTMATRIX_VCS_BEHIND_THRESHOLD:-5}
|
||||
DOTMATRIX_VCS_DIFF_THRESHOLD=${DOTMATRIX_VCS_DIFF_THRESHOLD:-300}
|
||||
|
||||
DOTMATRIX_MARK_ERROR=${DOTMATRIX_MARK_ERROR:-⚠}
|
||||
|
||||
# Sets of characters
|
||||
DOTMATRIX_VARIANT=${DOTMATRIX_VARIANT:-"dotmatrix"}
|
||||
if [[ "${DOTMATRIX_VARIANT}" == "dotmatrix" ]] ; then
|
||||
|
|
@ -554,7 +556,7 @@ _lp_dotmatrix_theme_prompt() {
|
|||
|
||||
if _lp_error ; then
|
||||
__dotmatrix_make_sep_link ${DOTMATRIX_COLOR_WARN[@]+"${DOTMATRIX_COLOR_WARN[@]}"}
|
||||
__dotmatrix_make_field "${lp_error}" ${DOTMATRIX_COLOR_WARN[@]+"${DOTMATRIX_COLOR_WARN[@]}"}
|
||||
__dotmatrix_make_field "${DOTMATRIX_MARK_ERROR}${lp_error}" ${DOTMATRIX_COLOR_WARN[@]+"${DOTMATRIX_COLOR_WARN[@]}"}
|
||||
prompt+="${dotmatrix_sep}${dotmatrix_field}"
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue