mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
parent
458dda86af
commit
6e63b1e1ee
|
@ -15,6 +15,8 @@ else
|
|||
fi
|
||||
|
||||
IN_COMMAND_EXECUTION="1"
|
||||
LAST_HISTORY_ID=$(history | tail -n1 | awk '{print $1;}')
|
||||
|
||||
prompt_start() {
|
||||
printf "\033]633;A\007"
|
||||
}
|
||||
|
@ -32,7 +34,14 @@ command_output_start() {
|
|||
}
|
||||
|
||||
command_complete() {
|
||||
printf "\033]633;D;%s\007" "$STATUS"
|
||||
local HISTORY_ID=$(history | tail -n1 | awk '{print $1;}')
|
||||
if [[ "$HISTORY_ID" == "$LAST_HISTORY_ID" ]]; then
|
||||
printf "\033]633;D\007"
|
||||
else
|
||||
printf "\033]633;D;%s\007" "$STATUS"
|
||||
LAST_HISTORY_ID=$HISTORY_ID
|
||||
fi
|
||||
|
||||
update_cwd
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue