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

Projects
None yet
2 participants
@outcoldman
Copy link
Contributor

outcoldman commented Jul 17, 2015

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.

Allow to disable compinit
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

This comment has been minimized.

Copy link
Contributor Author

outcoldman commented Jul 17, 2015

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

This comment has been minimized.

Copy link
Owner

tarjoilija commented Sep 8, 2015

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 outcoldman:allow_to_disable_compinit branch Sep 8, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment