-
Notifications
You must be signed in to change notification settings - Fork 12
/
.zshrc
57 lines (47 loc) · 1.26 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
# .zshrc - Alan Christopher Thomas
# http://alanct.com/
# Enable completion
autoload -U compinit
compinit -i
zstyle ':completion:*' menu select
setopt menu_complete
# Enable colors
autoload -U colors && colors
setopt prompt_subst
# History settings
setopt APPEND_HISTORY
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_NO_STORE
SAVEHIST=1000
HISTFILE=$HOME/.zhistory
# Emacs bindings
bindkey -e
# Properly set shell
export SHELL=$(which zsh)
# Include shell environment
if [ -f ~/.shenv ]; then
. ~/.shenv
fi
# Include alias definitions
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi
# Enable prompt
if [ -f ~/.zsh_scripts/prompt.zsh ]; then
. ~/.zsh_scripts/prompt.zsh
fi
# Modules
if [ -f ~/.zsh_modules/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ]; then
. ~/.zsh_modules/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
fi
fpath=($HOME/.zsh_modules/zsh-completions/src $fpath)
if [ -f ~/.zsh_modules/zsh-history-substring-search/zsh-history-substring-search.zsh ]; then
. ~/.zsh_modules/zsh-history-substring-search/zsh-history-substring-search.zsh
fi
bindkey -M emacs '^P' history-substring-search-up
bindkey -M emacs '^N' history-substring-search-down
# Execute .bash_local
if [ -f ~/.bash_local ]; then
. ~/.bash_local
fi