aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorhumphreylin <[email protected]>2020-02-02 17:33:25 +0800
committerhumphreylin <[email protected]>2020-02-02 17:33:25 +0800
commit5b2f6e73a633cc474a8b305d3cd32e5a472557ec (patch)
treedfbb406e1a10574518d993b8c73cc63abfa132d4 /.zshrc
parent8cc55bca7578dd9acad1e106b9f26400ce761f95 (diff)
downloaddotfiles-5b2f6e73a633cc474a8b305d3cd32e5a472557ec.tar.gz
dotfiles-5b2f6e73a633cc474a8b305d3cd32e5a472557ec.tar.bz2
dotfiles-5b2f6e73a633cc474a8b305d3cd32e5a472557ec.zip
Many modification ..
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc16
1 files changed, 8 insertions, 8 deletions
diff --git a/.zshrc b/.zshrc
index dcf7c3c..b77130d 100644
--- a/.zshrc
+++ b/.zshrc
@@ -10,13 +10,6 @@ HISTFILE=~/.zsh_history
export EDITOR=/usr/bin/vim
-# autojump
-if [ ! -d /usr/share/autojump ]; then
- echo 'Installing autojump ... '
- sudo apt install autojump
-fi
-. /usr/share/autojump/autojump.zsh
-
# zplug
if [ ! -d ~/.zplug ]; then
echo 'Installing zplug ... '
@@ -35,8 +28,13 @@ if ! zplug check --verbose; then
fi
zplug load
-# fzf
+# file
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
+[[ -s /usr/share/autojump/autojump.zsh ]] && . /usr/share/autojump/autojump.zsh
+
+# 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
@@ -44,3 +42,5 @@ if grep -q Microsoft /proc/version; then
alias expl='explorer.exe'
fi
+# Rust
+[ -d "$HOME/.cargo/bin" ] && export PATH="$HOME/.cargo/bin:$PATH"