aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2020-09-14 09:25:26 +0900
committernsfisis <nsfisis@gmail.com>2020-09-14 09:25:26 +0900
commit44fe00b8275e8d20871e42917b873ce9aa8001f1 (patch)
treeb7e199bb8092f6faa3c169274a618de5e5d8d4f1
parent157aaf3acf6bd59f452d77444d8ef2848056997e (diff)
downloaddotfiles-44fe00b8275e8d20871e42917b873ce9aa8001f1.tar.gz
dotfiles-44fe00b8275e8d20871e42917b873ce9aa8001f1.tar.zst
dotfiles-44fe00b8275e8d20871e42917b873ce9aa8001f1.zip
Update .zshrc: fix login error on macOS
-rw-r--r--.zshrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.zshrc b/.zshrc
index 7c0a620..c82dda1 100644
--- a/.zshrc
+++ b/.zshrc
@@ -159,8 +159,10 @@ setopt ZLE
# Load completion
+# Note about "-u" flag of compinit:
+# https://github.com/zsh-users/zsh/blob/24a82b9dad1cbe109d9fb5753c429fd37b1618cd/Completion/compinit#L67-L72
autoload -U compinit
-compinit autoload -U promptinit
+compinit -u autoload -U promptinit
zstyle ':completion::complete:*' use-cache true
#zstyle ':completion:*:default' menu select true
zstyle ':completion:*:default' menu select=1