aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorHumphrey Lin <[email protected]>2020-04-12 17:36:51 +0800
committerHumphrey Lin <[email protected]>2020-04-12 17:36:51 +0800
commitaf69ba9bd2b12b5c30766c9c6c25812d79132725 (patch)
tree9b5fa3c1bf87695ead4ba9cbd6497d1ca873ef8e /.zshrc
parent2550a4baabf21646d72394cbaa1dd70487daf01d (diff)
downloaddotfiles-af69ba9bd2b12b5c30766c9c6c25812d79132725.tar.gz
dotfiles-af69ba9bd2b12b5c30766c9c6c25812d79132725.tar.bz2
dotfiles-af69ba9bd2b12b5c30766c9c6c25812d79132725.zip
Some modification
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc30
1 files changed, 18 insertions, 12 deletions
diff --git a/.zshrc b/.zshrc
index b77130d..b39f395 100644
--- a/.zshrc
+++ b/.zshrc
@@ -30,17 +30,23 @@ zplug load
# file
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
-[[ -s /usr/share/autojump/autojump.zsh ]] && . /usr/share/autojump/autojump.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:1080
-export https_proxy=http://127.0.0.1:1080
-
-# alias
-if grep -q Microsoft /proc/version; then
- alias psh='powershell.exe'
- alias expl='explorer.exe'
-fi
-
-# Rust
-[ -d "$HOME/.cargo/bin" ] && export PATH="$HOME/.cargo/bin:$PATH"
+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
+
+# System Specific
+case `uname` in
+Darwin)
+ alias vim='mvim -v'
+ [ -f /usr/local/bin/mvim ] && export EDITOR='/usr/local/bin/mvim -v'
+;;
+Linux)
+ # commands for Linux
+;;
+FreeBSD)
+ # commands for FreeBSD
+;;
+esac