/
zshrc
62 lines (45 loc) · 1.56 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
62
# ======== Cache directory (for oh-my-zsh plugins) =========
[ ! -d $HOME/.zcustom/cache ] && mkdir -p $HOME/.zcustom/cache
export ZSH="$HOME/.zcustom"
export ZSH_CACHE_DIR="$ZSH/cache"
# ======== Random settings ===========
# Disable auto title so tmux window titles don't get messed up.
export DISABLE_AUTO_TITLE="true"
# Maintain a stack of cd directory traversals for `popd`
setopt AUTO_PUSHD
# Allow extended matchers like ^file, etc
set -o EXTENDED_GLOB
# Hide the "incomplete line" indicator on program exit
export PROMPT_EOL_MARK=''
# ========= History settings =========
if [ -z "$HISTFILE" ]; then
HISTFILE=$HOME/.zsh_history
fi
HISTSIZE=10000
SAVEHIST=10000
setopt append_history
setopt extended_history
setopt hist_expire_dups_first
setopt hist_ignore_dups # ignore duplication command history list
setopt hist_ignore_space
setopt inc_append_history
setopt share_history # share command history data
setopt extended_glob
# =========== Plugins ============
source $HOME/.zsh/vendor/antigen.zsh
antigen bundle robbyrussell/oh-my-zsh plugins/git
# antigen bundle robbyrussell/oh-my-zsh plugins/pyenv
antigen bundle robbyrussell/oh-my-zsh plugins/vi-mode
antigen bundle robbyrussell/oh-my-zsh plugins/zsh_reload
antigen bundle dbalatero/fzf-git
antigen bundle chriskempson/base16-shell
antigen bundle zsh-users/zsh-completions
antigen bundle zdharma/fast-syntax-highlighting
antigen theme romkatv/powerlevel10k
antigen apply
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# =========== Custom settings ================
for file in $HOME/.zsh/custom/**/*.zsh
do
source $file
done