1
1
mirror of https://github.com/wez/wezterm.git synced 2025-01-03 19:21:57 +03:00

avoid modern bash feature when testing for BLE_VERSION

refs: #1572
This commit is contained in:
Wez Furlong 2022-01-22 08:07:50 -07:00
parent 668b370541
commit 78ea214a96

View File

@ -385,7 +385,7 @@ fi;
# blesh provides it's own preexec mechanism which is recommended over bash-preexec # blesh provides it's own preexec mechanism which is recommended over bash-preexec
# See https://github.com/akinomyoga/ble.sh/wiki/Manual-%C2%A71-Introduction#user-content-fn-blehook for more details # See https://github.com/akinomyoga/ble.sh/wiki/Manual-%C2%A71-Introduction#user-content-fn-blehook for more details
if [[ ! -v BLE_VERSION ]]; then if [[ ! -n "$BLE_VERSION" ]]; then
__wezterm_install_bash_prexec __wezterm_install_bash_prexec
fi fi
@ -443,7 +443,7 @@ function __wezterm_semantic_preexec() {
# the semantic zones as we don't want to perturb the last command # the semantic zones as we don't want to perturb the last command
# status before we've had a chance to report it to the terminal # status before we've had a chance to report it to the terminal
if [[ -z "${WEZTERM_SHELL_SKIP_SEMANTIC_ZONES}" ]]; then if [[ -z "${WEZTERM_SHELL_SKIP_SEMANTIC_ZONES}" ]]; then
if [[ -v BLE_VERSION ]]; then if [[ -n "$BLE_VERSION" ]]; then
blehook PRECMD+=__wezterm_semantic_precmd blehook PRECMD+=__wezterm_semantic_precmd
blehook PREEXEC+=__wezterm_semantic_preexec blehook PREEXEC+=__wezterm_semantic_preexec
else else
@ -453,7 +453,7 @@ if [[ -z "${WEZTERM_SHELL_SKIP_SEMANTIC_ZONES}" ]]; then
fi fi
if [[ -z "${WEZTERM_SHELL_SKIP_CWD}" ]] ; then if [[ -z "${WEZTERM_SHELL_SKIP_CWD}" ]] ; then
if [[ -v BLE_VERSION ]]; then if [[ -n "$BLE_VERSION" ]]; then
blehook PRECMD+=__wezterm_osc7 blehook PRECMD+=__wezterm_osc7
else else
precmd_functions+=(__wezterm_osc7) precmd_functions+=(__wezterm_osc7)