forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 89
/
zshrc
43 lines (32 loc) · 989 Bytes
/
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
# Allow completing of the remainder of a command
bindkey "^N" insert-last-word
# Show contents of directory after cd-ing into it
chpwd() {
ls -lrthG
}
# Save a ton of history
HISTSIZE=20000
HISTFILE=~/.zsh_history
SAVEHIST=20000
# Enable completion
autoload -U compinit
compinit
# Disable flow control commands (keeps C-s from freezing everything)
stty start undef
stty stop undef
# Sourcing of other files
source $HOME/.dotfiles/zsh/aliases
source $HOME/.dotfiles/zsh/functions
source $HOME/.dotfiles/zsh/prompt
source $HOME/.dotfiles/zsh/z
# Add current directory bin
export PATH=$PATH:bin
# Add my own dotfiles bin
export PATH=$PATH:$HOME/.dotfiles/bin
# Add homebrew's bin
export PATH=$PATH:/usr/local/bin
# Add stack's bin
export PATH=$PATH:~/.local/bin
# Update hombrew once a week
export HOMEBREW_AUTO_UPDATE_SECS=600000
export N_PREFIX="$HOME/n"; [[ :$PATH: == *":$N_PREFIX/bin:"* ]] || PATH+=":$N_PREFIX/bin" # Added by n-install (see http://git.io/n-install-repo).