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
bd0b4b64
Unverified
Commit
bd0b4b64
authored
3 years ago
by
Sergei Shishov
Committed by
Marc Cornellà
3 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(asdf): fix path to Homebrew installation of `asdf` (#10481)
Fixes #10484 Closes #10481
parent
8ae37313
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
asdf.plugin.zsh
plugins/asdf/asdf.plugin.zsh
+9
-7
No files found.
plugins/asdf/asdf.plugin.zsh
View file @
bd0b4b64
...
@@ -4,16 +4,18 @@ ASDF_COMPLETIONS="$ASDF_DIR/completions"
...
@@ -4,16 +4,18 @@ ASDF_COMPLETIONS="$ASDF_DIR/completions"
# If not found, check for Homebrew package
# If not found, check for Homebrew package
if
[[
!
-f
"
$ASDF_DIR
/asdf.sh"
||
!
-f
"
$ASDF_COMPLETIONS
/asdf.bash"
]]
&&
((
$+
commands[brew]
))
;
then
if
[[
!
-f
"
$ASDF_DIR
/asdf.sh"
||
!
-f
"
$ASDF_COMPLETIONS
/asdf.bash"
]]
&&
((
$+
commands[brew]
))
;
then
ASDF_DIR
=
"
$(
brew
--prefix
asdf
)
"
brew_prefix
=
"
$(
brew
--prefix
asdf
)
"
ASDF_COMPLETIONS
=
"
$ASDF_DIR
/etc/bash_completion.d"
ASDF_DIR
=
"
${
brew_prefix
}
/libexec"
ASDF_COMPLETIONS
=
"
${
brew_prefix
}
/etc/bash_completion.d"
unset
brew_prefix
fi
fi
# Load command
# Load command
if
[[
-f
"
$ASDF_DIR
/asdf.sh"
]]
;
then
if
[[
-f
"
$ASDF_DIR
/asdf.sh"
]]
;
then
.
"
$ASDF_DIR
/asdf.sh"
.
"
$ASDF_DIR
/asdf.sh"
# Load completions
# Load completions
if
[[
-f
"
$ASDF_COMPLETIONS
/asdf.bash"
]]
;
then
if
[[
-f
"
$ASDF_COMPLETIONS
/asdf.bash"
]]
;
then
.
"
$ASDF_COMPLETIONS
/asdf.bash"
.
"
$ASDF_COMPLETIONS
/asdf.bash"
fi
fi
fi
fi
This diff is collapsed.
Click to expand it.
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