-
Notifications
You must be signed in to change notification settings - Fork 2
/
.zshrc
78 lines (48 loc) · 1.01 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
# path
typeset -U path
typeset -U fpath
typeset -U manpath
zdotdir=~
host=`hostname --fqdn`
path=( ~/bin $path )
fpath=( ~/.zfuns/$host ~/.zfuns/$host/* $fpath )
manpath=( ~/share/man $manpath )
# test if shell interactive
if [[ ! -o interactive ]] ; then
return
fi
# init
autoload -U compinit; compinit -u
# aliases
if test -d ~/.zaliases/$host; then
for a in ~/.zaliases/$host/*(@); do
. $a
done
fi
# functions
if test -d ~/.zfuns/$host; then
autoload -U ~/.zfuns/$host/*(:t)
#autoload -U ~/.zfuns/$host/*/*(:t)
fi
# key binds
bindkey '^r' history-incremental-search-backward
# prompt
prompt="%B%F{gray}%n@%m%k %B%F{gray}%B%F{black}%1~ %b%f%k"
setopt auto_cd
setopt null_glob
setopt auto_pushd
setopt pushd_to_home
setopt pushd_ignore_dups
setopt extended_glob
setopt share_history
setopt append_history
setopt inc_append_history
# rtorrent (FIXME)
/bin/stty start undef
/bin/stty stop undef
# paths (named)
hg=~/dev/hg
cvs=~/dev/cvs
git=~/dev/git
svn=~/dev/svn
uxcn=~git/uxcn