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
a26d72ba
Unverified
Commit
a26d72ba
authored
Apr 19, 2022
by
Carlo Sala
Committed by
GitHub
Apr 19, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(init): check for unsafe directories in `fpath` (#10672)
parent
51555fc4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
oh-my-zsh.sh
oh-my-zsh.sh
+6
-5
No files found.
oh-my-zsh.sh
View file @
a26d72ba
...
@@ -120,17 +120,18 @@ fi
...
@@ -120,17 +120,18 @@ fi
if
[[
"
$ZSH_DISABLE_COMPFIX
"
!=
true
]]
;
then
if
[[
"
$ZSH_DISABLE_COMPFIX
"
!=
true
]]
;
then
source
"
$ZSH
/lib/compfix.zsh"
source
"
$ZSH
/lib/compfix.zsh"
# If completion insecurities exist, warn the user
handle_completion_insecurities
# Load only from secure directories
# Load only from secure directories
compinit
-i
-C
-d
"
$ZSH_COMPDUMP
"
compinit
-i
-d
"
$ZSH_COMPDUMP
"
# If completion insecurities exist, warn the user
handle_completion_insecurities &|
else
else
# If the user wants it, load from all found directories
# If the user wants it, load from all found directories
compinit
-u
-
C
-
d
"
$ZSH_COMPDUMP
"
compinit
-u
-d
"
$ZSH_COMPDUMP
"
fi
fi
# Append zcompdump metadata if missing
# Append zcompdump metadata if missing
if
((
$zcompdump_refresh
))
;
then
if
((
$zcompdump_refresh
))
\
||
!
command grep
-q
-Fx
"
$zcompdump_revision
"
"
$ZSH_COMPDUMP
"
2>/dev/null
;
then
# Use `tee` in case the $ZSH_COMPDUMP filename is invalid, to silence the error
# Use `tee` in case the $ZSH_COMPDUMP filename is invalid, to silence the error
# See https://github.com/ohmyzsh/ohmyzsh/commit/dd1a7269#commitcomment-39003489
# See https://github.com/ohmyzsh/ohmyzsh/commit/dd1a7269#commitcomment-39003489
tee
-a
"
$ZSH_COMPDUMP
"
&>/dev/null
<<
EOF
tee
-a
"
$ZSH_COMPDUMP
"
&>/dev/null
<<
EOF
...
...
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