From 78ea214a96da7e9e8c8e5f3539bb788902eaff53 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 22 Jan 2022 08:07:50 -0700 Subject: [PATCH] avoid modern bash feature when testing for BLE_VERSION refs: #1572 --- assets/shell-integration/wezterm.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/shell-integration/wezterm.sh b/assets/shell-integration/wezterm.sh index b5b249ebc..c0ad63d7a 100644 --- a/assets/shell-integration/wezterm.sh +++ b/assets/shell-integration/wezterm.sh @@ -385,7 +385,7 @@ fi; # 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 -if [[ ! -v BLE_VERSION ]]; then +if [[ ! -n "$BLE_VERSION" ]]; then __wezterm_install_bash_prexec fi @@ -443,7 +443,7 @@ function __wezterm_semantic_preexec() { # 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 if [[ -z "${WEZTERM_SHELL_SKIP_SEMANTIC_ZONES}" ]]; then - if [[ -v BLE_VERSION ]]; then + if [[ -n "$BLE_VERSION" ]]; then blehook PRECMD+=__wezterm_semantic_precmd blehook PREEXEC+=__wezterm_semantic_preexec else @@ -453,7 +453,7 @@ if [[ -z "${WEZTERM_SHELL_SKIP_SEMANTIC_ZONES}" ]]; then fi if [[ -z "${WEZTERM_SHELL_SKIP_CWD}" ]] ; then - if [[ -v BLE_VERSION ]]; then + if [[ -n "$BLE_VERSION" ]]; then blehook PRECMD+=__wezterm_osc7 else precmd_functions+=(__wezterm_osc7)