-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
executable file
·40 lines (30 loc) · 1.06 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
# stop tmux from changing titles
DISABLE_AUTO_TITLE=true
# source /etc/profile in order to run /etc/profile.d scripts
emulate sh -c 'source /etc/profile'
# use antigen to manage zsh
source ~/repositories/github/dotfiles/antigen/antigen.zsh
# use oh-my-zsh
antigen use oh-my-zsh
# use my theme
antigen theme ~/repositories/github/dotfiles/oh-my-zsh/themes barryorourke --no-local-clone
# apply some oh-my-zsh bundles
antigen bundle extract
antigen bundle git
antigen bundle golang
#antigen bundle history-substring-search
antigen bundle vi-mode
# apply some other bundles
antigen bundle zsh-users/zsh-syntax-highlighting
antigen bundle zsh-users/zsh-completions
# apply the changes
antigen apply
# restore ^r whilst in vi mode, I can't train my brain out of it
bindkey -M viins '^r' history-incremental-search-backward
bindkey -M vicmd '^r' history-incremental-search-backward
# create default directory structure if it doesn't exist
for D in tmp/{desktop,downloads}
do
[ ! -d ~/${D} ] && mkdir -p ~/${D}
done
export PATH="/home/${USER}/go/bin:/usr/lib/go-1.14/bin:${PATH}"