+ Fixing homebrew zsh problem
This commit is contained in:
parent
471cf86139
commit
1b336fb6de
2 changed files with 11 additions and 2 deletions
|
@ -13,7 +13,7 @@ setopt auto_cd # auto cd if directory
|
||||||
[ -f ~/.config/zsh/completion ] && source ~/.config/zsh/completion
|
[ -f ~/.config/zsh/completion ] && source ~/.config/zsh/completion
|
||||||
# zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash
|
# zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash
|
||||||
# fpath=(/usr/local/share/zsh-completions $fpath)
|
# fpath=(/usr/local/share/zsh-completions $fpath)
|
||||||
# autoload -U compinit && compinit
|
# autoload -U compinit && compinit -u
|
||||||
# zmodload -i zsh/complist
|
# zmodload -i zsh/complist
|
||||||
# zstyle ':completion:*' menu select
|
# zstyle ':completion:*' menu select
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,16 @@
|
||||||
# vim: filetype=zsh
|
# vim: filetype=zsh
|
||||||
zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash
|
zstyle ':completion:*:*:git:*' script /usr/local/etc/bash_completion.d/git-completion.bash
|
||||||
fpath=(/usr/local/share/zsh-completions $fpath)
|
fpath=(/usr/local/share/zsh-completions $fpath)
|
||||||
autoload -U compinit && compinit
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
|
||||||
|
if [[ "$OSTYPE" == "darwin"* ]]; then
|
||||||
|
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
||||||
|
compinit -u # homebrew moment, not recommended but whatever
|
||||||
|
else
|
||||||
|
compinit
|
||||||
|
fi
|
||||||
|
|
||||||
zmodload -i zsh/complist
|
zmodload -i zsh/complist
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue