aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc51
1 files changed, 28 insertions, 23 deletions
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 [email protected]: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 [email protected]: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