Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
c550f1f8
Commit
c550f1f8
authored
Apr 29, 2011
by
Robby Russell
Browse files
Options
Browse Files
Download
Plain Diff
Merged pull request #269 from oknowton/master.
Significantly speed up startup time (1.2 seconds for me) by removing redundant compinit calls
parents
70d0beae
58a7cf19
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
15 additions
and
44 deletions
+15
-44
completion.zsh
lib/completion.zsh
+0
-3
key-bindings.zsh
lib/key-bindings.zsh
+0
-2
oh-my-zsh.sh
oh-my-zsh.sh
+15
-4
brew.plugin.zsh
plugins/brew/brew.plugin.zsh
+0
-4
cpanm.plugin.zsh
plugins/cpanm/cpanm.plugin.zsh
+0
-4
gem.plugin.zsh
plugins/gem/gem.plugin.zsh
+0
-4
github.plugin.zsh
plugins/github/github.plugin.zsh
+0
-4
macports.plugin.zsh
plugins/macports/macports.plugin.zsh
+0
-4
npm.plugin.zsh
plugins/npm/npm.plugin.zsh
+0
-4
pip.plugin.zsh
plugins/pip/pip.plugin.zsh
+0
-4
redis-cli.plugin.zsh
plugins/redis-cli/redis-cli.plugin.zsh
+0
-4
vagrant.plugin.zsh
plugins/vagrant/vagrant.plugin.zsh
+0
-3
No files found.
lib/completion.zsh
View file @
c550f1f8
...
...
@@ -8,9 +8,6 @@ setopt always_to_end
WORDCHARS
=
''
autoload
-U
compinit
compinit
-i
zmodload
-i
zsh/complist
## case-insensitive (all),partial-word and then substring completion
...
...
lib/key-bindings.zsh
View file @
c550f1f8
# TODO: Explain what some of this does..
autoload
-U
compinit
compinit
-i
bindkey
-e
bindkey
'\ew'
kill-region
...
...
oh-my-zsh.sh
View file @
c550f1f8
...
...
@@ -7,12 +7,23 @@ fpath=($ZSH/functions $fpath)
# TIP: Add files you don't want in git to .gitignore
for
config_file
(
$ZSH
/lib/
*
.zsh
)
source
$config_file
# Load all of your custom configurations from custom/
for
config_file
(
$ZSH
/custom/
*
.zsh
)
source
$config_file
# Add all defined plugins to fpath
plugin
=
${
plugin
:
=()
}
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
plugin
=
${
plugin
:
=()
}
for
plugin
(
$plugins
)
source
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
for
plugin
(
$plugins
)
;
do
if
[
-f
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
]
;
then
source
$ZSH
/plugins/
$plugin
/
$plugin
.plugin.zsh
fi
done
# Load all of your custom configurations from custom/
for
config_file
(
$ZSH
/custom/
*
.zsh
)
source
$config_file
# Load the theme
source
"
$ZSH
/themes/
$ZSH_THEME
.zsh-theme"
...
...
plugins/brew/brew.plugin.zsh
deleted
100644 → 0
View file @
70d0beae
# add brew completion function to path
fpath
=(
$ZSH
/plugins/brew
$fpath
)
autoload
-U
compinit
compinit
-i
plugins/cpanm/cpanm.plugin.zsh
deleted
100644 → 0
View file @
70d0beae
# add cpanm completion function to path
fpath
=(
$ZSH
/plugins/cpanm
$fpath
)
autoload
-U
compinit
compinit
-i
plugins/gem/gem.plugin.zsh
deleted
100644 → 0
View file @
70d0beae
# add gem completion function to path
fpath
=(
$ZSH
/plugins/gem
$fpath
)
autoload
-U
compinit
compinit
-i
plugins/github/github.plugin.zsh
View file @
c550f1f8
...
...
@@ -5,7 +5,3 @@ if [ "$commands[(I)hub]" ]; then
function
git
(){
hub
"
$@
"
}
fi
# add github completion function to path
fpath
=(
$ZSH
/plugins/github
$fpath
)
autoload
-U
compinit
compinit
-i
plugins/macports/macports.plugin.zsh
View file @
c550f1f8
...
...
@@ -6,7 +6,3 @@ alias puni="sudo port uninstall inactive"
alias
puo
=
"sudo port upgrade outdated"
alias
pup
=
"psu && puo"
# add macports completion function to path
fpath
=(
$ZSH
/plugins/macports
$fpath
)
autoload
-U
compinit
compinit
-i
plugins/npm/npm.plugin.zsh
deleted
100644 → 0
View file @
70d0beae
# add npm completion function to path
fpath
=(
$ZSH
/plugins/npm
$fpath
)
autoload
-U
compinit
compinit
-i
plugins/pip/pip.plugin.zsh
deleted
100644 → 0
View file @
70d0beae
# add brew completion function to path
fpath
=(
$ZSH
/plugins/pip
$fpath
)
autoload
-U
compinit
compinit
-i
plugins/redis-cli/redis-cli.plugin.zsh
deleted
100644 → 0
View file @
70d0beae
# add redis completion function to path
fpath
=(
$ZSH
/plugins/redis-cli
$fpath
)
autoload
-U
compinit
compinit
-i
plugins/vagrant/vagrant.plugin.zsh
deleted
100644 → 0
View file @
70d0beae
fpath
=(
$ZSH
/plugins/vagrant
$fpath
)
autoload
-U
compinit
compinit
-i
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