-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc.vanilla
76 lines (62 loc) · 1.7 KB
/
.zshrc.vanilla
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
# ~/.zshrc
# --------
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
ZSH_CACHE_DIR=$HOME/.cache/zsh
setopt INC_APPEND_HISTORY
setopt EXTENDED_HISTORY
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_FIND_NO_DUPS
setopt HIST_VERIFY
if [ ! -d "$ZSH_CACHE_DIR" ]; then
mkdir -p "$ZSH_CACHE_DIR"
fi
# vi mode
bindkey -v
# completion {{{
# packages: zsh-completions
zstyle :compinstall filename '/home/pablo/.zshrc'
zstyle ':completion:*' menu select
zstyle ':completion:*' rehash true
setopt COMPLETE_ALIASES
bindkey '\e.' insert-last-word
autoload -Uz compinit
compinit
# }}}
# source common rc {{{
if [ -f ~/.shrc ]; then
. ~/.shrc
fi
# }}}
# prompt {{{
autoload -Uz promptinit
promptinit
prompt adam2
# }}}
# package: autoenv
if [ -f /usr/share/autoenv/activate.sh ]; then
source /usr/share/autoenv/activate.sh
fi
# package: fasd
if [ $commands[fasd] ]; then # check if fasd is installed
fasd_cache="${ZSH_CACHE_DIR}/fasd-init-cache"
if [ "$(command -v fasd)" -nt "$fasd_cache" -o ! -s "$fasd_cache" ]; then
fasd --init auto >| "$fasd_cache"
fi
source "$fasd_cache"
unset fasd_cache
alias j=z
fi
# package: zsh-syntax-highlighting
if [ -f /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
# package: zsh-history-substring-search-git
if [ -f /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh ]; then
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
bindkey -M vicmd 'k' history-substring-search-up
bindkey -M vicmd 'j' history-substring-search-down
fi
# vim: fdm=marker