-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
109 lines (90 loc) · 2.21 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# zshrc
# bdowning
setopt extended_history
setopt inc_append_history
setopt share_history
setopt hist_expire_dups_first
setopt hist_find_no_dups
SAVEHIST=100000
HISTSIZE=125000
HISTFILE=~/.zsh_history
setopt no_extended_glob
setopt correct_all
# custom bindings
bindkey -e
bindkey '^W' kill-region
setopt no_flow_control
# user functions
#fpath=( $HOME/.zsh/compfuncs $HOME/.zsh/functions $fpath )
#for func in $HOME/.zsh/functions/*; do
# autoload $(basename $func)
#done
#unset func
# completion
fpath=( $HOME/.zsh/compfuncs $fpath )
setopt no_beep no_auto_menu list_packed
if [[ $USER =~ '^b.*downing$' ]]; then
# . $HOME/.zcompinstall
zstyle ':completion:*' verbose yes
zstyle ':completion:*:descriptions' format '>>>>> %B%d%b <<<<<'
zstyle ':completion:*:messages' format '%d'
zstyle ':completion:*:warnings' format 'No matches for: %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
autoload -U compinit
compinit
fi
# use some bash completion
autoload bashcompinit
bashcompinit
bashcomps=( git )
for comp in $bashcomps; do
if [ -f /etc/bash_completion.d/$comp ]; then
source /etc/bash_completion.d/$comp
fi
done
# directories
setopt cdable_vars
DIRSTACKSIZE=20
setopt auto_pushd pushd_minus pushd_silent pushd_to_home
alias dh='dirs -v'
# job control
setopt no_notify no_hup
alias j='jobs -lp'
# history
#HISTSIZE=5000
alias h='history -Di'
alias h0='h 0'
# other enviornment stuff
alias ls='ls -F'
alias sl=ls
PAGER='less'
if [[ $TERM = dumb ]]; then
unsetopt zle
prompt='$ '
else
precmd () { print -rP $'%#%# %B%!%b %B%m%b:%~' }
case $TERM in
xterm*|rxvt*|screen)
precmd () {
print -Pn "\e]0;%# - %m:%~\a"
print -P '%#%# %B%!%b %B%m%b:%~'
}
preexec () {
printf "\e]0;%s - %s\a" "$1" "${(%):-'%m:%~'}"
}
;;
esac
prompt=':; '
fi
#watch=notme
#WATCHFMT='[%B%T%b] %B%n%b has %a tty %B%l%b%(M: from :)%B%M%b'
#log
#if [ $TERM = "xterm" ]; then
# stty erase
#fi
# SBCL and other things need STACK
#ulimit -s 8192
export CVS_RSH=ssh
#function dmalloc { eval `command dmalloc -b $*`; }
alias xo=xdg-open