aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorHumphrey Lin <[email protected]>2020-09-20 17:51:20 +0800
committerHumphrey Lin <[email protected]>2020-09-20 17:51:20 +0800
commitf26ef0ecf46387966983daf878bb5a3f4d7eb09f (patch)
tree752b7c09d322fbf21ca934449fe4f8125fcce575 /.zshrc
parent9cecc479ad3561f9bd174f3dc7f33e0ce0c48c74 (diff)
downloaddotfiles-f26ef0ecf46387966983daf878bb5a3f4d7eb09f.tar.gz
dotfiles-f26ef0ecf46387966983daf878bb5a3f4d7eb09f.tar.bz2
dotfiles-f26ef0ecf46387966983daf878bb5a3f4d7eb09f.zip
Update
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