Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to disable compinit #41

Merged
merged 1 commit into from
Sep 8, 2015

Conversation

outcoldman
Copy link
Contributor

Implement ZGEN_AUTOLOAD_COMPINIT to allow disabling compinit in cases where you want to skip them for secure reasons. For example when you login as a root.

Implement ZGEN_AUTOLOAD_COMPINIT to allow disabling compinit in cases where you want to skip them for secure reasons. For example when you login as a root.
@outcoldman
Copy link
Contributor Author

In my case I want to use something like

ZGEN_AUTOLOAD_COMPINIT=true
if [[ ${USER} == "root" ]]; then
    ZGEN_AUTOLOAD_COMPINIT=false
fi

so for root user I will not load autocomp. One of the reasons I don't want to see this error

zsh compinit: insecure directories, run compaudit for list.
Ignore insecure directories and continue [y] or abort compinit [n]?

@tarjoilija
Copy link
Owner

Thank you!

tarjoilija added a commit that referenced this pull request Sep 8, 2015
@tarjoilija tarjoilija merged commit 8e1c8de into tarjoilija:master Sep 8, 2015
@outcoldman outcoldman deleted the allow_to_disable_compinit branch September 8, 2015 12:40
jtt9340 pushed a commit to jtt9340/zgen that referenced this pull request Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants