From f26ef0ecf46387966983daf878bb5a3f4d7eb09f Mon Sep 17 00:00:00 2001 From: Humphrey Lin Date: Sun, 20 Sep 2020 17:51:20 +0800 Subject: Update --- .zshrc | 51 ++++++++++++++++++++++++++++----------------------- 1 file changed, 28 insertions(+), 23 deletions(-) (limited to '.zshrc') diff --git a/.zshrc b/.zshrc index b39f395..419c97b 100644 --- a/.zshrc +++ b/.zshrc @@ -9,39 +9,26 @@ SAVEHIST=1000 HISTFILE=~/.zsh_history export EDITOR=/usr/bin/vim - -# zplug -if [ ! -d ~/.zplug ]; then - echo 'Installing zplug ... ' - git clone git@github.com:zplug/zplug.git ~/.zplug -fi -source ~/.zplug/init.zsh -zplug "plugins/git", from:oh-my-zsh -zplug "zsh-users/zsh-completions" -zplug "zsh-users/zsh-syntax-highlighting" -zplug "dracula/zsh", as:theme -if ! zplug check --verbose; then - printf "Install? [y/N]: " - if read -q; then - echo; zplug install - fi -fi -zplug load +[ -f /usr/local/bin/mvim ] && \ + export EDITOR='/usr/local/bin/mvim -v' \ + alias vim='mvim -v' # file [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f /usr/local/etc/profile.d/autojump.sh ] && . /usr/local/etc/profile.d/autojump.sh # proxy -export http_proxy=http://127.0.0.1:1087 -export https_proxy=http://127.0.0.1:1087 -export all_proxy=socks5://127.0.0.1:1086 +export http_proxy=http://127.0.0.1:7890 +export https_proxy=http://127.0.0.1:7890 +export all_proxy=socks5://127.0.0.1:7891 +export no_proxy=localhost,127.0.0.1 # System Specific case `uname` in Darwin) - alias vim='mvim -v' - [ -f /usr/local/bin/mvim ] && export EDITOR='/usr/local/bin/mvim -v' + # commands for macOS + export PATH="/usr/local/opt/openjdk/bin:$PATH" + export CPPFLAGS="-I/usr/local/opt/openjdk/include" ;; Linux) # commands for Linux @@ -50,3 +37,21 @@ FreeBSD) # commands for FreeBSD ;; esac + +# zplug +if [ ! -d ~/.zplug ]; then + echo 'Installing zplug ... ' + git clone git@github.com:zplug/zplug.git ~/.zplug +fi +source ~/.zplug/init.zsh +zplug "plugins/git", from:oh-my-zsh +zplug "zsh-users/zsh-completions" +zplug "zsh-users/zsh-syntax-highlighting" +zplug "dracula/zsh", as:theme +if ! zplug check --verbose; then + printf "Install? [y/N]: " + if read -q; then + echo; zplug install + fi +fi +zplug load -- cgit v1.2.3