mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Load and run compinit at start
This commit is contained in:
parent
53582fbe97
commit
0683e4d7bf
1 changed files with 4 additions and 4 deletions
|
|
@ -10,6 +10,10 @@ fi
|
||||||
|
|
||||||
# Initializes Oh My Zsh
|
# Initializes Oh My Zsh
|
||||||
|
|
||||||
|
# Load and run compinit
|
||||||
|
autoload -U compinit
|
||||||
|
compinit -i
|
||||||
|
|
||||||
# add a function path
|
# add a function path
|
||||||
fpath=($ZSH/functions $ZSH/completions $fpath)
|
fpath=($ZSH/functions $ZSH/completions $fpath)
|
||||||
|
|
||||||
|
|
@ -21,10 +25,6 @@ for config_file ($ZSH/lib/*.zsh) source $config_file
|
||||||
plugin=${plugin:=()}
|
plugin=${plugin:=()}
|
||||||
for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
|
for plugin ($plugins) fpath=($ZSH/plugins/$plugin $fpath)
|
||||||
|
|
||||||
# Load and run compinit
|
|
||||||
autoload -U compinit
|
|
||||||
compinit -i
|
|
||||||
|
|
||||||
# Load all of the plugins that were defined in ~/.zshrc
|
# Load all of the plugins that were defined in ~/.zshrc
|
||||||
for plugin ($plugins); do
|
for plugin ($plugins); do
|
||||||
if [ -f $ZSH/custom/plugins/$plugin/$plugin.plugin.zsh ]; then
|
if [ -f $ZSH/custom/plugins/$plugin/$plugin.plugin.zsh ]; then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue