/
_zshrc
69 lines (57 loc) · 1.88 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
64
65
66
67
68
69
[[ -z "$TMUX" ]] && echo "New zsh session:"
# required, avoid errors if missing
mkdir -p ~/.ssh
touch ~/.ssh/known_hosts
touch ~/.ssh/environments
###############################################################
# Inital setup.
###############################################################
#
export EDITOR="vim"
bindkey -v
bindkey '^R' history-incremental-search-backward
export GO111MODULE=on
###############################################################
# Externals
###############################################################
#
test "$DOTFILES" || DOTFILES=~/.dotfiles
function _include() {
[[ -e $1 ]] && . $1
}
_include ${DOTFILES}/pathrc
_include ${DOTFILES}/aliasrc
_include ${DOTFILES}/prompt
_include ${DOTFILES}/completion/general.sh
_include ${DOTFILES}/functionrc
_include ${DOTFILES}/**/*.plugin.zsh
test -e "$(which docker)" && _include ${DOTFILES}/dockerenvrc
###############################################################
# History
###############################################################
setopt inc_append_history
setopt share_history
HISTSIZE=10000
SAVEHIST=10000
HISTFILE=~/.zsh_history
unsetopt correct_all
###############################################################
# Directory Navigation
###############################################################
# remember directories you've navigated through
# dirs -v to list
# cd +1 to jump to dir 1 from top
# cd -3 to jump to dir 3 from bottom
setopt AUTO_PUSHD
###############################################################
# 'localrc' -- should be last!
###############################################################
# - to add local customizations, create '~/.localrc' and
# add changes to it
_include ${HOME}/.localrc
export PATH="${HOME}/.local/bin:${PATH}"
export PATH="/snap/bin:${PATH}"
### Added by the Heroku Toolbelt
export PATH="/usr/local/heroku/bin:${PATH}"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
# vim: ft=sh: