avoid modern bash feature when testing for BLE_VERSION

refs: #1572
This commit is contained in:
Wez Furlong committed 2022-01-22 08:07:50 -07:00
1 parent 668b370541
commit 78ea214a96
1 file changed
+3 -3
+3 -3
View File
@@ -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)