Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
475fb3a2
Commit
475fb3a2
authored
Sep 11, 2013
by
Robby Russell
Browse files
Merge pull request #1829 from docwhat/compinit
Create the zcompdump based on version and host
parents
1c468c63
d2fe03d7
Changes
1
Show whitespace changes
Inline
Side-by-side
oh-my-zsh.sh
View file @
475fb3a2
...
...
@@ -38,10 +38,20 @@ for plugin ($plugins); do
fi
done
# Figure out the SHORT hostname
if
[
-n
"
$commands
[scutil]"
]
;
then
# OS X
SHORT_HOST
=
$(
scutil
--get
ComputerName
)
else
SHORT_HOST
=
${
HOST
/.*/
}
fi
# Save the location of the current completion dump file.
ZSH_COMPDUMP
=
"
${
ZDOTDIR
:-${
HOME
}}
/.zcompdump-
${
SHORT_HOST
}
-
${
ZSH_VERSION
}
"
# Load and run compinit
autoload
-U
compinit
compinit
-i
compinit
-i
-d
"
${
ZSH_COMPDUMP
}
"
# Load all of the plugins that were defined in ~/.zshrc
for
plugin
(
$plugins
)
;
do
...
...
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