Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
O
oh-my-fish
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
oh-my-fish
Commits
a4e58aaf
Commit
a4e58aaf
authored
Dec 30, 2014
by
Bruno Pinto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #275 from jacobono/gvm-update-and-cask-plugin
parents
fcb62327
228b9c5e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
plugins/cask/cask.load
plugins/cask/cask.load
+1
-0
plugins/gvm/gvm.load
plugins/gvm/gvm.load
+27
-0
No files found.
plugins/cask/cask.load
0 → 100644
View file @
a4e58aaf
_prepend_path $HOME/.cask/bin
\ No newline at end of file
plugins/gvm/gvm.load
View file @
a4e58aaf
for gvm_path in (find $HOME/.gvm/*/current/bin -maxdepth 0)
for gvm_path in (find $HOME/.gvm/*/current/bin -maxdepth 0)
_prepend_path $gvm_path
_prepend_path $gvm_path
set -l module_info (echo $gvm_path | perl -ne 'm|(.*/.gvm/(\w+)/current)/bin| && print "$1 $2"')
set -l module_dir (echo $module_info | awk -F' ' '{print $1}')
set -l module_name (echo $module_info | awk -F' ' '{print $2}')
set -l module_home (echo $module_name | tr '[:lower:]' '[:upper:]')_HOME
set -gx "$module_home" $module_dir
end
end
# ONLY checked on OSX! Please add for other OS's...
if test -z $JAVA_HOME
if test -f "/usr/libexec/java_home"
set -gx JAVA_HOME (/usr/libexec/java_home)
end
if test -z $JAVA_HOME
set -l java_homes "/Library/Java/Home" "/System/Library/Frameworks/JavaVM.framework/Home"
for file in $java_homes
if test -d $file
set -gx JAVA_HOME $file
break
end
end
end
end
if test -z $JAVA_HOME
echo "GVM: JAVA_HOME not set please set JAVA_HOME."
end
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