Mercurial > hg > zsh-env
changeset 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 | 6f008c7a63d7 |
children | 129d5bcd9814 |
files | zshrc |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
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; }