-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
63 lines (52 loc) · 1.68 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
63
# The following lines were added by compinstall
zstyle ':completion:*' completer _expand _complete _ignored
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' matcher-list '' '+m:{[:lower:][:upper:]}={[:upper:][:lower:]}'
zstyle ':completion:*' menu select=1
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle :compinstall filename '/home/lime/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
setopt appendhistory sharehistory hist_ignore_all_dups hist_ignore_space
setopt autocd
bindkey -e
# End of lines configured by zsh-newuser-install
fpath+=($HOME/.zdir/pure)
autoload -Uz promptinit
promptinit
zstyle :prompt:pure:user color yellow
zstyle :prompt:pure:host color yellow
prompt pure
source ~/.aliases
source ~/.zdir/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source ~/.zdir/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
# Bind up & down arrows to substring search
# Account for some platform differences
bindkey "$terminfo[kcuu1]" history-substring-search-up
bindkey "$terminfo[kcud1]" history-substring-search-down
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
# Go
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
# Node
export NVM_DIR="$HOME/.nvm"
if [ -e $NVM_DIR ]; then
source $NVM_DIR/nvm.sh
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
fi
# Ruby
if type rbenv &> /dev/null; then
eval "$(rbenv init -)"
fi
# Homebrew
HOMEBREW_AUTO_UPDATE_SECS=604800
# Local
if [ -f ~/.zshrc.local ]; then
source ~/.zshrc.local
fi