diff options
| author | Carlo Sala <carlosalag@protonmail.com> | 2025-03-20 20:02:34 +0100 |
|---|---|---|
| committer | Carlo Sala <carlosalag@protonmail.com> | 2025-03-20 20:02:34 +0100 |
| commit | 5eaebdf0fe870a8c599c89c6b70a0c5ee8c78b42 (patch) | |
| tree | 8787a0b89112fe4e9d6aa146605bcb459e33bd48 /lib/termsupport.zsh | |
| parent | 85d60d489c54150cc9df5cef0504f6af90638fbd (diff) | |
| download | zsh-5eaebdf0fe870a8c599c89c6b70a0c5ee8c78b42.tar.gz zsh-5eaebdf0fe870a8c599c89c6b70a0c5ee8c78b42.tar.bz2 zsh-5eaebdf0fe870a8c599c89c6b70a0c5ee8c78b42.zip | |
fix(termsupport): ensure ohmyzsh can run with `set -eu`
Closes #12870
Diffstat (limited to 'lib/termsupport.zsh')
| -rw-r--r-- | lib/termsupport.zsh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/termsupport.zsh b/lib/termsupport.zsh index 087bae9bb..d2fbf42cd 100644 --- a/lib/termsupport.zsh +++ b/lib/termsupport.zsh @@ -47,7 +47,7 @@ fi # Runs before showing the prompt function omz_termsupport_precmd { - [[ "${DISABLE_AUTO_TITLE:-}" != true ]] || return + [[ "${DISABLE_AUTO_TITLE:-}" != true ]] || return 0 title "$ZSH_THEME_TERM_TAB_TITLE_IDLE" "$ZSH_THEME_TERM_TITLE_IDLE" } @@ -145,6 +145,7 @@ esac # Identifies the directory using a file: URI scheme, including # the host name to disambiguate local vs. remote paths. function omz_termsupport_cwd { + setopt localoptions unset # Percent-encode the host and path names. local URL_HOST URL_PATH URL_HOST="$(omz_urlencode -P $HOST)" || return 1 |
