# HG changeset patch # User Dirk Olmes # Date 1518744037 -3600 # Node ID 4c87719f258cd263f3d0a56eb8054f8f6c182f24 # Parent 6f008c7a63d734fbc141ccd2d36736f4b20e13a2 Avoid complaining about compinit when running as sudo diff -r 6f008c7a63d7 -r 4c87719f258c zshrc --- 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; }