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
6babcbd8
Unverified
Commit
6babcbd8
authored
May 06, 2021
by
alexandregv
Committed by
Marc Cornellà
Dec 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(asdf): add support for archlinux/AUR package (#9893)
Closes #9893
parent
bd0b4b64
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
asdf.plugin.zsh
plugins/asdf/asdf.plugin.zsh
+6
-0
No files found.
plugins/asdf/asdf.plugin.zsh
View file @
6babcbd8
...
...
@@ -2,6 +2,12 @@
ASDF_DIR
=
"
${
ASDF_DIR
:-
$HOME
/.asdf
}
"
ASDF_COMPLETIONS
=
"
$ASDF_DIR
/completions"
# If not found, check for archlinux/AUR package (/opt/asdf-vm/)
if
[[
!
-f
"
$ASDF_DIR
/asdf.sh"
||
!
-f
"
$ASDF_COMPLETIONS
/asdf.bash"
]]
&&
[[
-f
"/opt/asdf-vm/asdf.sh"
]]
;
then
ASDF_DIR
=
"/opt/asdf-vm"
ASDF_COMPLETIONS
=
"
$ASDF_DIR
"
fi
# If not found, check for Homebrew package
if
[[
!
-f
"
$ASDF_DIR
/asdf.sh"
||
!
-f
"
$ASDF_COMPLETIONS
/asdf.bash"
]]
&&
((
$+
commands[brew]
))
;
then
brew_prefix
=
"
$(
brew
--prefix
asdf
)
"
...
...
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