From a1d250b423ba386ef7e3c182a3a41a1d5d7e7a5a Mon Sep 17 00:00:00 2001 From: Humphrey Lin Date: Wed, 9 Dec 2020 13:56:02 +0800 Subject: Add java config for macOS --- .zshrc | 6 ++++-- 1 file 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]: " -- cgit v1.2.3