Mercurial > hg > zsh-env
diff zshrc @ 127:4c87719f258c
Avoid complaining about compinit when running as sudo
author | Dirk Olmes <dirk.olmes@codedo.de> |
---|---|
date | Fri, 16 Feb 2018 02:20:37 +0100 |
parents | b3ffe2fba3ac |
children | 163ef90dd755 |
line wrap: on
line diff
--- a/zshrc Thu Dec 21 04:54:09 2017 +0100 +++ b/zshrc Fri Feb 16 02:20:37 2018 +0100 @@ -24,7 +24,9 @@ # enable zsh's fancy autocomplete fpath=(~/.zsh-env/completion $fpath) autoload -U compinit -compinit + +# -u avoids compinit complaining when running as root (see man zshcompsys) +compinit -u # custom functions/aliases that should work on all platforms cd() { builtin cd "$@"; print -D $PWD; }