-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
48 lines (41 loc) · 969 Bytes
/
.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
bindkey -e
HISTFILE=$HOME/.zsh_history
HISTSIZE=100000
SAVEHIST=$HISTSIZE
autoload -U edit-command-line
setopt histignorealldups
setopt histreduceblanks
setopt incappendhistory
setopt sharehistory
setopt autocd
setopt autolist
setopt automenu
setopt alwaystoend
setopt extendedglob
zstyle ':completion:*' completer _complete
zstyle ':completion:*' matcher-list '' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]}' '+l:|=* r:|=*'
autoload -Uz compinit
compinit
unsetopt beep # ANNOYING
source ~/.aliases
source ~/.profile
zplug 'cbrock/sugar-free', as:theme
globalias() {
if [[ $LBUFFER =~ ' [A-Z0-9]+$' ]]; then
zle _expand_alias
zle expand-word
fi
zle self-insert
}
zle -N globalias
bindkey " " globalias
bindkey "^ " magic-space
bindkey -M isearch " " magic-space
if ! zplug check --verbose; then
printf "Install? [y/N]: "
if read -q; then
echo; zplug install
fi
fi
zplug load
fpath=(/usr/local/share/zsh-completions $fpath)