-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
83 lines (66 loc) · 1.75 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
export SHELL=/bin/zsh
export ZSH=$HOME/.oh-my-zsh
export EDITOR=/usr/local/bin/vim
export AWS_DEFAULT_REGION=eu-west-1
export KEYTIMEOUT=1
export TIMER_FORMAT='[%d]'
# turn off brew auto update
export HOMEBREW_NO_AUTO_UPDATE=1
ZSH_THEME="TheOne"
ZSH_DISABLE_COMPFIX=true
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_FIND_NO_DUPS
setopt HIST_SAVE_NO_DUPS
setopt HIST_BEEP
# Enable Ctrl-x-e to edit command line
autoload -U edit-command-line
# Emacs style
zle -N edit-command-line
bindkey '^xe' edit-command-line
bindkey '^x^e' edit-command-line
plugins=(
ssh-agent \
git \
vi-mode \
web-search \
autojump \
docker docker-compose \
urltools \
catimg \
fancy-ctrl-z \
zsh_reload \
nvm \
fzf \
node \
yarn \
python
# timer \
)
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export GOPATH="$HOME/go"
export BAT_THEME=TwoDark
zstyle :omz:plugins:ssh-agent agent-forwarding on
source $ZSH/oh-my-zsh.sh
which direnv > /dev/null && eval "$(direnv hook zsh)"
# Add scripts to PATH
export PATH="$PATH:$HOME/scripts"
# Add haskell & stack binaries
export PATH="$PATH:$HOME/Library/Haskell/bin:$HOME/.local/bin"
# Add latex
export PATH="$PATH:/usr/local/texlive/2019basic/bin/x86_64-darwin"
# Add Go binaries
export PATH="$PATH:$HOME/go/bin"
# Add Rust binaries
export PATH="$PATH:$HOME/.cargo/bin"
alias grv > /dev/null && unalias grv
alias stack > /dev/null && unalias stack
# load ~/.zshrc.local
[[ -s $HOME/.zshrc.local ]] && source "$HOME/.zshrc.local"
[ -f "${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/env" ] && source "${GHCUP_INSTALL_BASE_PREFIX:=$HOME}/.ghcup/env"
if command -v pyenv 1>/dev/null 2>&1; then
eval "$(pyenv init -)"
fi