Skip to content

Commit c8a47a0

Browse files
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>
1 parent cff57b7 commit c8a47a0

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

templates/zsh.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ function __zoxide_doctor() {
5959

6060
{%- else %}
6161
[[ ${_ZO_DOCTOR:-1} -ne 0 ]] || return 0
62+
[[ $- == *i* ]] || return 0
6263

6364
{%- if hook == InitHook::Prompt %}
6465
[[ ${precmd_functions[(Ie)__zoxide_hook]:-} -eq 0 ]] || return 0

0 commit comments

Comments
 (0)