mirror of
https://github.com/cmderdev/cmder.git
synced 2025-11-09 13:49:05 +08:00
adjust comments
This commit is contained in:
5
vendor/git-prompt.sh
vendored
5
vendor/git-prompt.sh
vendored
@@ -58,7 +58,8 @@ else
|
|||||||
}
|
}
|
||||||
|
|
||||||
__cmder_preexec() {
|
__cmder_preexec() {
|
||||||
printf '\e]133;C\a' # Emit OSC 133;C to mark the start of command execution
|
# Emit OSC 133;C to mark the start of command execution
|
||||||
|
printf '\e]133;C\a'
|
||||||
}
|
}
|
||||||
|
|
||||||
# Append to PROMPT_COMMAND to emit sequences just before each prompt
|
# Append to PROMPT_COMMAND to emit sequences just before each prompt
|
||||||
@@ -67,7 +68,7 @@ else
|
|||||||
else
|
else
|
||||||
PROMPT_COMMAND="__cmder_prompt_command;$PROMPT_COMMAND"
|
PROMPT_COMMAND="__cmder_prompt_command;$PROMPT_COMMAND"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Use DEBUG trap to emit OSC 133;C before command execution
|
# Use DEBUG trap to emit OSC 133;C before command execution
|
||||||
trap '__cmder_preexec' DEBUG
|
trap '__cmder_preexec' DEBUG
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user