test command_not_found
This commit is contained in:
+3
-4
@@ -207,16 +207,15 @@ function ansi_block_continuation {
|
||||
function ansi_block_error {
|
||||
FG=BLACK
|
||||
BG=RED
|
||||
PADDING=2
|
||||
local content detail exit_code
|
||||
|
||||
content=$(style_ansi "$1")
|
||||
content=$(style_padding "$content")
|
||||
content=$(PADDING=2 style_padding "$content")
|
||||
|
||||
detail="$2"
|
||||
[[ -n "$detail" ]] && detail=$(BG=BLACK FG=WHITE PADDING_LEFT=4 style_padding "$2")
|
||||
[[ -n "$detail" ]] && detail=$(BG=BLACK FG=WHITE PADDING=2 style_padding "$2")
|
||||
|
||||
exit_code=$(FG=CYAN style_ansi "$3")
|
||||
exit_code=$(FG=CYAN PADDING=2 style_padding "$3")
|
||||
builtin echo -en "\r"
|
||||
BLOCK_CONTINUATION_COL=5 style_block "$content$detail$exit_code"
|
||||
ansi_reset
|
||||
|
||||
Reference in New Issue
Block a user