Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
6bf906a2
Commit
6bf906a2
authored
Apr 12, 2011
by
Pat Regan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize plugin loading so that only one call to compinit is required
parent
16ac094a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
11 additions
and
15 deletions
+11
-15
oh-my-zsh.sh
oh-my-zsh.sh
+11
-2
brew.plugin.zsh
plugins/brew/brew.plugin.zsh
+0
-2
cpanm.plugin.zsh
plugins/cpanm/cpanm.plugin.zsh
+0
-2
gem.plugin.zsh
plugins/gem/gem.plugin.zsh
+0
-2
github.plugin.zsh
plugins/github/github.plugin.zsh
+0
-2
macports.plugin.zsh
plugins/macports/macports.plugin.zsh
+0
-2
pip.plugin.zsh
plugins/pip/pip.plugin.zsh
+0
-2
vagrant.plugin.zsh
plugins/vagrant/vagrant.plugin.zsh
+0
-1
No files found.
oh-my-zsh.sh
View file @
6bf906a2
...
@@ -10,14 +10,23 @@ for config_file ($ZSH/lib/*.zsh) source $config_file
...
@@ -10,14 +10,23 @@ for config_file ($ZSH/lib/*.zsh) source $config_file
# Load all of your custom configurations from custom/
# Load all of your custom configurations from custom/
for
config_file
(
$ZSH
/custom/
*
.zsh
)
source
$config_file
for
config_file
(
$ZSH
/custom/
*
.zsh
)
source
$config_file
#
Load all of the plugins that were defined in ~/.zshrc
#
Add all defined plugins to fpath
plugin
=
${
plugin
:
=()
}
plugin
=
${
plugin
:
=()
}
for
plugin
(
$plugins
)
source
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
for
plugin
(
$plugins
)
fpath
=(
$ZSH
/plugins/
$plugin
$fpath
)
# Load and run compinit
# Load and run compinit
autoload
-U
compinit
autoload
-U
compinit
compinit
-i
compinit
-i
# Load all of the plugins that were defined in ~/.zshrc
for
plugin
(
$plugins
)
do
if
[
-f
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
]
then
source
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
fi
done
# Load the theme
# Load the theme
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
...
...
plugins/brew/brew.plugin.zsh
deleted
100644 → 0
View file @
16ac094a
# add brew completion function to path
fpath
=(
$ZSH
/plugins/brew
$fpath
)
plugins/cpanm/cpanm.plugin.zsh
deleted
100644 → 0
View file @
16ac094a
# add cpanm completion function to path
fpath
=(
$ZSH
/plugins/cpanm
$fpath
)
plugins/gem/gem.plugin.zsh
deleted
100644 → 0
View file @
16ac094a
# add gem completion function to path
fpath
=(
$ZSH
/plugins/gem
$fpath
)
plugins/github/github.plugin.zsh
deleted
100644 → 0
View file @
16ac094a
# add github completion function to path
fpath
=(
$ZSH
/plugins/github
$fpath
)
plugins/macports/macports.plugin.zsh
View file @
6bf906a2
...
@@ -6,5 +6,3 @@ alias puni="sudo port uninstall inactive"
...
@@ -6,5 +6,3 @@ alias puni="sudo port uninstall inactive"
alias
puo
=
"sudo port upgrade outdated"
alias
puo
=
"sudo port upgrade outdated"
alias
pup
=
"psu && puo"
alias
pup
=
"psu && puo"
# add macports completion function to path
fpath
=(
$ZSH
/plugins/macports
$fpath
)
plugins/pip/pip.plugin.zsh
deleted
100644 → 0
View file @
16ac094a
# add brew completion function to path
fpath
=(
$ZSH
/plugins/pip
$fpath
)
plugins/vagrant/vagrant.plugin.zsh
deleted
100644 → 0
View file @
16ac094a
fpath
=(
$ZSH
/plugins/vagrant
$fpath
)
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment