Skip to content

Commit

Permalink
Try to fix zsh compinint flaking out on the CI server
Browse files Browse the repository at this point in the history
Supposedly loading it with -u prevents the permissions check
  • Loading branch information
kovidgoyal committed Feb 21, 2022
1 parent a43f610 commit 644357a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions kitty_tests/shell_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def safe_env_for_running_shell(home_dir, rc='', shell='zsh'):
if shell == 'zsh':
ans['ZLE_RPROMPT_INDENT'] = '0'
with open(os.path.join(home_dir, '.zshenv'), 'w') as f:
print('unset GLOBAL_RCS', file=f)
print('autoload -Uz compinit && compinit -u\nunset GLOBAL_RCS', file=f)
with open(os.path.join(home_dir, '.zshrc'), 'w') as f:
print(rc, file=f)
print(rc + '\n', file=f)
setup_zsh_env(ans)
return ans

Expand Down
2 changes: 1 addition & 1 deletion test.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import os
import sys
import warnings
from tempfile import TemporaryDirectory
from contextlib import contextmanager
from tempfile import TemporaryDirectory
from typing import Iterator

base = os.path.dirname(os.path.abspath(__file__))
Expand Down

0 comments on commit 644357a

Please sign in to comment.