mirror of https://github.com/akelge/zsh
Speedup
This commit is contained in:
parent
d6aa0053e9
commit
2a0691f654
|
@ -10,6 +10,8 @@ for prefix in /usr/local /opt/homebrew; do
|
||||||
brew=$(whence $prefix/bin/brew)
|
brew=$(whence $prefix/bin/brew)
|
||||||
if [ $brew ]; then
|
if [ $brew ]; then
|
||||||
eval "$($brew shellenv)"
|
eval "$($brew shellenv)"
|
||||||
|
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
||||||
|
break
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
if type brew &>/dev/null;then
|
|
||||||
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
|
||||||
#
|
|
||||||
# Reload compinit and bashcompinit, to parse brew installed completions
|
|
||||||
autoload -U compinit
|
|
||||||
autoload bashcompinit
|
|
||||||
compinit -u
|
|
||||||
bashcompinit
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
1
zshrc
1
zshrc
|
@ -7,6 +7,7 @@
|
||||||
# Global Order: zshenv, zprofile, zshrc, zlogin
|
# Global Order: zshenv, zprofile, zshrc, zlogin
|
||||||
#
|
#
|
||||||
|
|
||||||
|
zmodload zsh/zprof
|
||||||
# Determine zsh conf file position. On Debian/Ubuntu is /etc/zsh, on other should be /etc
|
# Determine zsh conf file position. On Debian/Ubuntu is /etc/zsh, on other should be /etc
|
||||||
#
|
#
|
||||||
[ -d /etc/zsh ] && BASE="/etc/zsh" || BASE="/etc"
|
[ -d /etc/zsh ] && BASE="/etc/zsh" || BASE="/etc"
|
||||||
|
|
Loading…
Reference in New Issue