mirror of
https://github.com/ChesterYue/ohmyzsh-theme-passion.git
synced 2026-07-21 20:11:03 +00:00
[A] COMMAND_RESULT
This commit is contained in:
parent
573a2e930d
commit
71285245f0
1 changed files with 1 additions and 2 deletions
|
|
@ -54,6 +54,7 @@ function update_command_status() {
|
||||||
local color_reset="%{$reset_color%}";
|
local color_reset="%{$reset_color%}";
|
||||||
local reset_font="%{$fg_no_bold[white]%}";
|
local reset_font="%{$fg_no_bold[white]%}";
|
||||||
COMMAND_RESULT=$1;
|
COMMAND_RESULT=$1;
|
||||||
|
export COMMAND_RESULT=$COMMAND_RESULT
|
||||||
if $COMMAND_RESULT;
|
if $COMMAND_RESULT;
|
||||||
then
|
then
|
||||||
arrow="%{$fg_bold[red]%}❱%{$fg_bold[yellow]%}❱%{$fg_bold[green]%}❱";
|
arrow="%{$fg_bold[red]%}❱%{$fg_bold[yellow]%}❱%{$fg_bold[green]%}❱";
|
||||||
|
|
@ -61,8 +62,6 @@ function update_command_status() {
|
||||||
arrow="%{$fg_bold[red]%}❱❱❱";
|
arrow="%{$fg_bold[red]%}❱❱❱";
|
||||||
fi
|
fi
|
||||||
COMMAND_STATUS="${arrow}${reset_font}${color_reset}";
|
COMMAND_STATUS="${arrow}${reset_font}${color_reset}";
|
||||||
echo $COMMAND_RESULT
|
|
||||||
export COMMAND_RESULT=$COMMAND_RESULT
|
|
||||||
}
|
}
|
||||||
update_command_status true;
|
update_command_status true;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue