-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
61 lines (46 loc) · 1.18 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
# load our own completion functions
fpath=(~/.zsh/completion $fpath)
# completion
# autoload -U compinit
# compinit
autoload -Uz compinit promptinit;
compinit
promptinit
prompt pure
for function in ~/.zsh/functions/*; do
source $function
done
# automatically enter directories without cd
setopt auto_cd
# use sublime as the visual editor
export VISUAL=subl
export EDITOR=vim
# aliases
if [ -e "$HOME/.aliases" ]; then
source "$HOME/.aliases"
fi
# use incremental search
bindkey "^R" history-incremental-search-backward
# add some readline keys back
bindkey "^A" beginning-of-line
bindkey "^E" end-of-line
# expand functions in the prompt
setopt prompt_subst
# ignore duplicate history entries
setopt histignoredups
# keep TONS of history
export HISTSIZE=4096
# automatically pushd
setopt auto_pushd
export dirstacksize=5
# awesome cd movements from zshkit
setopt AUTOCD
setopt AUTOPUSHD PUSHDMINUS PUSHDSILENT PUSHDTOHOME
setopt cdablevars
# Try to correct command line spelling
setopt CORRECT CORRECT_ALL
# Enable extended globbing
setopt EXTENDED_GLOB
export PATH="$HOME/.yarn/bin:$PATH"
source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
. ~/.zsh/plugins/z/z.sh