-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
57 lines (40 loc) · 1.42 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
# modify the prompt to contain git branch name if applicable
setopt promptsubst
setopt hist_ignore_all_dups inc_append_history appendhistory
HISTFILE=~/.zhistory
HISTSIZE=4096
SAVEHIST=4096
setopt autocd autopushd pushdminus pushdsilent pushdtohome cdablevars
DIRSTACKSIZE=5
setopt extendedglob
setopt nomatch notify
unsetopt beep
bindkey -v
. $HOME/.asdf/asdf.sh
if type brew &>/dev/null; then
FPATH=$(brew --prefix)/share/zsh/site-functions:$FPATH
FPATH=${ASDF_DIR}/completions:$FPATH
autoload -Uz compinit
compinit
fi
fpath=( "$HOME/.zsh/site-functions" $fpath )
# load custom executable functions
for function in ~/.zsh/functions/*; do
source $function
done
# makes color constants available
autoload -U colors; colors
# enable coloured output from ls, etc
export CLICOLOR=1
# Allow shell history in IEx/Erlang
export ERL_AFLAGS="-kernel shell_history enabled"
autoload -U promptinit; promptinit
prompt pure
export PATH="$HOME/.bin:/usr/local/bin:/usr/local/sbin:$HOME/.config/yarn/global/node_modules/.bin:$HOME/.composer/vendor/bin:$PATH"
[ -s "~/Users/matthew/.secrets" ] && source "/Users/matthew/.secrets"
# SCM Shortcuts
eval "$(scmpuff init -s)"
eval "$(direnv hook zsh)"
[ -s "/Users/matthew/.iterm2_shell_integration" ] && source /Users/matthew/.iterm2_shell_integration.zsh
[ -s "/usr/local/share/zsh/site-functions" ] && source /usr/local/share/zsh/site-functions
autoload -U +X bashcompinit && bashcompinit