Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
better java stuff - and jvm
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Feb 21, 2015
1 parent 962883d commit c945d23
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 11 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,10 @@ ran at bootstrap phase.
- [alias-tips][alias-tips] to remember you that you have an alias for that;
- [zsh-pg][zsh-pg] a set of utilities to deal with postgresql;
- [zsh-colors][zsh-colors] to `red ERROR`, `yellow WARNING` and other colors;
- [zsh-dwim][zsh-dwim] to `sudo` commands with `CTRL+U`;
- [zsh-git-sync][zsh-git-sync] to keep your repositories synced;
- [zsh-open-pr][zsh-open-pr] to open pull requests from the command line;
- [git-it-on][git-it-on] to open your current project/branch whatever on your
- [git-it-on][git-it-on] to open your current project/branch whatever on your;
- [jvm][jvm] to manage java versions (a la rvm, but simpler).
browser.

All those are managed by [antigen][antigen].
Expand All @@ -100,7 +100,7 @@ All those are managed by [antigen][antigen].
[bd]: https://github.com/Tarrasch/zsh-bd
[alias-tips]: https://github.com/djui/alias-tips
[zsh-colors]: https://github.com/Tarrasch/zsh-colors
[zsh-dwim]: https://github.com/oknowton/zsh-dwim
[jvm]: https://github.com/caarlos0/jvm

## compatibility

Expand Down
1 change: 0 additions & 1 deletion antigen/bundles.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Tarrasch/zsh-bd
djui/alias-tips
caarlos0/zsh-mkc
sindresorhus/pure
oknowton/zsh-dwim
Tarrasch/zsh-colors
caarlos0/zsh-git-sync
zsh-users/zsh-completions
Expand Down
1 change: 1 addition & 0 deletions java/java-version.symlink
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8
17 changes: 10 additions & 7 deletions java/path.zsh
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/zsh
export MAVEN_OPTS="-Xmx1024m"
export ECLIPSE_HOME=/opt/homebrew-cask/Caskroom/eclipse-jee/latest/eclipse
if [ -e "$ECLIPSE_HOME"/Eclipse.app ]; then
export PATH="${ECLIPSE_HOME}/Eclipse.app/Contents/MacOS:${PATH}"
if /usr/libexec/java_home &>/dev/null; then
export JAVA_HOME=$(/usr/libexec/java_home)

if [ "$(uname -s)" = "Darwin" ]; then
export ECLIPSE_HOME=/opt/homebrew-cask/Caskroom/eclipse-jee/latest/eclipse
if [ -e "$ECLIPSE_HOME"/Eclipse.app ]; then
export PATH="${ECLIPSE_HOME}/Eclipse.app/Contents/MacOS:${PATH}"
if /usr/libexec/java_home &>/dev/null; then
export JAVA_HOME=$(/usr/libexec/java_home)
fi
else
unset ECLIPSE_HOME
fi
else
unset ECLIPSE_HOME
fi

0 comments on commit c945d23

Please sign in to comment.