-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
59 lines (44 loc) · 1.09 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
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit
compinit
autoload -Uz zsh-add-hook
autoload -Uz url-quote-magic
zle -N self-insert url-quote-magic
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt INC_APPEND_HISTORY
setopt HIST_REDUCE_BLANKS
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_FIND_NO_DUPS
HISTFILE=~/.histfile
HISTSIZE=5000
SAVEHIST=$HISTSIZE
source ~/.zplug/init.zsh
zplug "zplug/zplug"
zplug "zsh-users/zsh-history-substring-search"
zplug "zsh-users/zsh-completions"
zplug "hlissner/zsh-autopair", defer:2
zplug "zsh-users/zsh-syntax-highlighting", defer:2
zplug "softmoth/zsh-vim-mode"
typeset -A ZSH_HIGHLIGHT_STYLES
ZSH_HIGHLIGHT_STYLES[path]='none'
if ! zplug check --verbose; then
print "Install [y/n]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
if [[ -f ~/.config/aliases ]]; then
source ~/.config/aliases
fi
for file in ~/.zsh/*.zsh; do
source "${file}"
done
setopt appendhistory
setopt correct
setopt interactivecomments
setopt no_beep
unsetopt autocd
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh