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
ea3e666e
Commit
ea3e666e
authored
May 07, 2019
by
Marc Cornellà
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init: run compinit before loading lib/ files
parent
0f0448fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
9 deletions
+11
-9
directories.zsh
lib/directories.zsh
+1
-0
oh-my-zsh.sh
oh-my-zsh.sh
+10
-9
No files found.
lib/directories.zsh
View file @
ea3e666e
...
...
@@ -21,6 +21,7 @@ alias 9='cd -9'
alias
md
=
'mkdir -p'
alias
rd
=
rmdir
function
d
()
{
if
[[
-n
$1
]]
;
then
dirs
"
$@
"
...
...
oh-my-zsh.sh
View file @
ea3e666e
...
...
@@ -29,15 +29,6 @@ if [[ -z "$ZSH_CUSTOM" ]]; then
fi
# Load all of the config files in ~/oh-my-zsh that end in .zsh
# TIP: Add files you don't want in git to .gitignore
for
config_file
(
$ZSH
/lib/
*
.zsh
)
;
do
custom_config_file
=
"
${
ZSH_CUSTOM
}
/lib/
${
config_file
:t
}
"
[
-f
"
${
custom_config_file
}
"
]
&&
config_file
=
${
custom_config_file
}
source
$config_file
done
is_plugin
()
{
local
base_dir
=
$1
local
name
=
$2
...
...
@@ -71,6 +62,7 @@ if [ -z "$ZSH_COMPDUMP" ]; then
fi
if
[[
$ZSH_DISABLE_COMPFIX
!=
true
]]
;
then
source
$ZSH
/lib/compfix.zsh
# If completion insecurities exist, warn the user
handle_completion_insecurities
# Load only from secure directories
...
...
@@ -80,6 +72,15 @@ else
compinit
-u
-C
-d
"
${
ZSH_COMPDUMP
}
"
fi
# Load all of the config files in ~/oh-my-zsh that end in .zsh
# TIP: Add files you don't want in git to .gitignore
for
config_file
(
$ZSH
/lib/
*
.zsh
)
;
do
custom_config_file
=
"
${
ZSH_CUSTOM
}
/lib/
${
config_file
:t
}
"
[
-f
"
${
custom_config_file
}
"
]
&&
config_file
=
${
custom_config_file
}
source
$config_file
done
# Load all of the plugins that were defined in ~/.zshrc
for
plugin
(
$plugins
)
;
do
if
[
-f
$ZSH_CUSTOM
/plugins/
$plugin
/
$plugin
.plugin.zsh
]
;
then
...
...
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