aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHumphrey Lin <[email protected]>2020-12-09 13:56:02 +0800
committerHumphrey Lin <[email protected]>2020-12-09 13:56:02 +0800
commita1d250b423ba386ef7e3c182a3a41a1d5d7e7a5a (patch)
tree124cc802d71a2d4c6c85a412e2d00224b14d6077
parent0b5c0e2e318ed131200183c6d32e9cab30952b12 (diff)
downloaddotfiles-a1d250b423ba386ef7e3c182a3a41a1d5d7e7a5a.tar.gz
dotfiles-a1d250b423ba386ef7e3c182a3a41a1d5d7e7a5a.tar.bz2
dotfiles-a1d250b423ba386ef7e3c182a3a41a1d5d7e7a5a.zip
Add java config for macOS
-rw-r--r--.zshrc6
1 files changed, 4 insertions, 2 deletions
diff --git a/.zshrc b/.zshrc
index 652f00c..0d63a88 100644
--- a/.zshrc
+++ b/.zshrc
@@ -13,7 +13,6 @@ HISTFILE=~/.zsh_history
# file
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[[ -s /etc/profile.d/autojump.sh ]] && source /etc/profile.d/autojump.sh
-[ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
# proxy
export http_proxy=http://127.0.0.1:7890
@@ -25,9 +24,13 @@ export no_proxy=localhost,127.0.0.1
case `uname` in
Darwin)
# commands for macOS
+ [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh
# ruby
[ -d /usr/local/opt/ruby/bin ] && export PATH="/usr/local/opt/ruby/bin:$PATH"
+
+ # java
+ [ -d /usr/local/opt/openjdk/bin ] && export PATH="/usr/local/opt/openjdk/bin:$PATH"
;;
Linux)
# commands for Linux
@@ -54,7 +57,6 @@ source ~/.zplug/init.zsh
zplug "plugins/git", from:oh-my-zsh
zplug "zsh-users/zsh-completions"
zplug "zsh-users/zsh-syntax-highlighting"
-zplug "zsh-users/zsh-autosuggestions"
zplug "dracula/zsh", as:theme
if ! zplug check --verbose; then
printf "Install? [y/N]: "