-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
123 lines (83 loc) · 2.6 KB
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
export ZSH="/home/neo/.oh-my-zsh"
ZSH_THEME="bira"
plugins=(
git
zsh-syntax-highlighting
)
# change caps & ctrl
setxkbmap -option ctrl:swapcaps
source $ZSH/oh-my-zsh.sh
# i3wm 启动
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
# anaconda 相关
# export PATH=/home/neo/anaconda3/bin:$PATH
# export PYTHONPATH=$PYTHONPATH:/home/neo/anaconda3/lib/python3.6/site-packages
# alias python=/home/neo/anaconda3/bin/python
# alias pip=/home/neo/anaconda3/bin/pip
# alias pip3=/usr/bin/pip
# alias python3=/usr/bin/python
# miniconda
# export PATH=/home/neo/miniconda3//bin:$PATH
# export PYTHONPATH=$PYTHONPATH:/home/neo/miniconda3//lib/python3.6/site-packages
# alias pipa=/home/neo/miniconda3/bin/pip
# 自己的翻译小工具
# alias w="python ~/repos/words/words.py"
# alias t="python ~/repos/tools/youdaotranslate/youdaotranslate/main.py"
# alias word="nvim ~/repos/notes/English/words.md"
# fzf
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# export FZF_DEFAULT_OPTS='--height 40% --layout=reverse --border'
# zsh-autosuggestions
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
# neo python path
export PATH="/home/neo/.local/bin:$PATH"
# pipenv complete
eval "$(pipenv --completion)"
# export PATH="/usr/bin:$PATH"
# export PYTHONPATH=$PYTHONPATH:/usr/lib/python3.7/site-packages
# pipenv with anaconda3
# pipenv --python path/to/anaconda/bin/python
# go env
# export GOROOT=/usr/lib/go
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
# repeat fast
xset r rate 250 40
# autojump
source /usr/share/autojump/autojump.zsh
# cow
# export http_proxy=http://127.0.0.1:7777
# export https_proxy=http://127.0.0.1:7777
# pip source
# https://pypi.tuna.tsinghua.edu.cn/simple
# https://pypi.doubanio.com/simple
# python path
# export PATH="/usr/bin:$PATH"
# save path on cd
function cd {
builtin cd $@
pwd > ~/.last_dir
}
# restore last saved path
if [ -f ~/.last_dir ]
then cd `cat ~/.last_dir`
fi
# rust path
# export PATH="/home/neo/.cargo/bin:$PATH"
# export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"
# thefuck
# eval $(thefuck --alias)
# tmux
export TERM=xterm-256color
alias tnew="tmux new -s"
alias vim="nvim"
alias pipi="pip install -i https://pypi.tuna.tsinghua.edu.cn/simple"
alias pipenvi="pipenv install -i https://pypi.tuna.tsinghua.edu.cn/simple"
alias npmi="npm install --registry=https://registry.npm.taobao.org"
# disable underline
ZH_HIGHLIGHT_STYLES[path]=none
ZSH_HIGHLIGHT_STYLES[path_prefix]=none
http_proxy='http://127.0.0.1:1080'
https_proxy='https://127.0.0.1:1080'
# brew disable auto update while install package
export HOMEBREW_NO_AUTO_UPDATE=1