Skip zsh doctor in non-interactive shells (#1241)
Co-authored-by: Puneet Dixit <236133619+puneetdixit200@users.noreply.github.com> Co-authored-by: Ajeet D'Souza <98ajeet@gmail.com>
This commit is contained in:
parent
cff57b7734
commit
c8a47a068b
|
|
@ -59,6 +59,7 @@ function __zoxide_doctor() {
|
|||
|
||||
{%- else %}
|
||||
[[ ${_ZO_DOCTOR:-1} -ne 0 ]] || return 0
|
||||
[[ $- == *i* ]] || return 0
|
||||
|
||||
{%- if hook == InitHook::Prompt %}
|
||||
[[ ${precmd_functions[(Ie)__zoxide_hook]:-} -eq 0 ]] || return 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue