-
Notifications
You must be signed in to change notification settings - Fork 2
/
zshrc
70 lines (53 loc) · 1.18 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
70
# prompts and themes
autoload -Uz promptinit
setopt promptsubst
promptinit
# colors
autoload -U colors && colors
# zmv
autoload -U zmv
# path
typeset -U PATH
# run-help
unalias run-help
autoload -U run-help
export HELPDIR=~/.zsh/help
set -o emacs
# history
export HISTFILE=$HOME/.zhistory
export SAVEHIST=2000
export HISTSIZE=2000
setopt extended_history
setopt hist_ignore_all_dups
setopt hist_ignore_space
setopt inc_append_history
setopt share_history
# globbing
setopt extended_glob
# ux
export WORDCHARS='*?_-[]~=&;!#$%^(){}<>'
setopt no_flowcontrol
# time commands that run for a long time
export REPORTTIME=5
source ~/.zsh/aliases.zsh
source ~/.zsh/git.zsh
source ~/.zsh/functions.zsh
source ~/.zsh/fasd.zsh
source ~/.zsh/wakeonlan.zsh
source ~/.zsh/dotenv.zsh
source ~/.zsh/keys.zsh
[[ -f "$HOME/.zshrc.local" ]] && source "$HOME/.zshrc.local"
prompt antonio
if $(which chruby > /dev/null); then
chruby ruby
fi
# completion system
autoload -U compinit && compinit
[[ -n $DISPLAY ]] && [[ -z $TMUX ]] && tmux
eval $(gpg-agent --daemon)
if [[ -n $TMUX ]]; then
window_name=$(tmux display -p "#W")
if [[ $window_name =~ "reattach" ]]; then
printf '\033kshell\033\\'
fi
fi