zshrc is sourced in interactive shells It should contain commands to s

  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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
#
# .zshrc is sourced in interactive shells.
# It should contain commands to set up aliases,
# functions, options, key bindings, etc.
#
autoload -U compinit
compinit
autoload -U predict-on
predict-on
zle -N predict-on
zle -N predict-off
autoload -U zcalc
#zcalc
autoload -U tetris
zle -N tetris
autoload -Uz ztodo
chpwd() { ztodo }
zmodload zsh/complist
zmodload -a zsh/stat stat
zmodload -a zsh/zpty zpty
zmodload -a zsh/zprof zprof
zmodload -ap zsh/mapfile mapfile
setopt menucomplete
zstyle ':completion:*' menu yes select
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*:processes' command 'ps -xuf'
zstyle ':completion:*:processes' sort false
zstyle ':completion:*:processes-names' command 'ps xho command'
setopt autocd
#allow tab completion in the middle of a word
setopt COMPLETE_IN_WORD
## keep background processes at full speed
#setopt NOBGNICE
## restart running processes on exit
#setopt HUP
## history
HISTFILE=~/.zhistory
HISTSIZE=4096
SAVEHIST=4096
setopt APPEND_HISTORY
## for sharing history between zsh processes
setopt INC_APPEND_HISTORY
setopt HIST_IGNORE_ALL_DUPS
setopt SHARE_HISTORY
setopt HIST_IGNORE_SPACE
setopt HIST_REDUCE_BLANKS
setopt NO_BEEP
#setopt CORRECT_ALL
setopt histexpiredupsfirst histfindnodups
setopt histignoredups histnostore histverify histignorespace
setopt autocd bgnice correct nohup nonomatch
setopt listpacked listtypes
setopt HIST_IGNORE_ALL_DUPS
unsetopt PROMPT_CR
setopt extendedglob
DIRSTACKSIZE=20
## never ever beep ever
#setopt NO_BEEP
## automatically decide when to page a list of completions
#LISTMAX=0
## disable mail checking
MAILCHECK=0
autoload -U colors
colors
bindkey -v
bindkey "\e[1~" beginning-of-line
bindkey "\e[2~" transpose-words
bindkey "\e[3~" delete-char
bindkey "\e[4~" end-of-line
bindkey "^[[5~" up-line-or-history
bindkey "^[[6~" down-line-or-history
bindkey "\eOH" beginning-of-line
bindkey "\eOF" end-of-line
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
bindkey "^X^X" predict-on
bindkey "^X^Z" predict-off
bindkey "^T" tetris
bindkey "^A[A" clear
alias -g h=' --help|less'
alias -s pdf=xpdf
alias -s avi='mplayer -zoom'
alias -s mpg='mplayer -zoom'
alias -s mov='mplayer -zoom'
alias -s htm=ff
alias -s html=ff
alias -s jpg=view_img
alias -s jpeg=view_img
alias -s gif=view_img
alias -s png=view_img
alias -s mp3=xmms
alias -s flac=xmms
alias -s djvu=djview
alias -s ps=xpdf
alias -s rpm=view_rpm
alias -s gz=view_gz
alias -s bz2=view_bz2
alias -s tar=view_tar
alias -s exe=wine
alias -s odb=oo
alias -s odt=abiword
alias -s odp=oo
alias -s m3u='/opt/bin/pl - -playlist'
alias -s mp3='/opt/bin/pl -'
alias -s flac='/opt/bin/pl -'
alias -s iso='/opt/bin/showiso'
alias rpmbs='nocorrect rpmbs'
alias ipt="sudo vim /etc/sysconfig/iptables && sudo /etc/init.d/iptables restart"
alias m=mplayer
alias v=vim
alias la='ls -Ah'
alias ll='ls -lh'
alias lla='ls -Alh'
alias lal='ls -Ah |less'
alias llal='ls -Alh |less'
alias mc='bash -c "mc -c"'
alias ej='eject /dev/sr0'
alias init='sudo init'
alias yum='sudo yum'
alias rpm='xrpm'
alias qrpm='/bin/rpm'
alias df='df -h'
alias ii='sudo init 3'
alias i5='sudo init 5'
alias i0='sudo init 0'
alias i6='sudo init 6'
alias e='elinks'
alias mix='alsamixer'
alias links='LANG=en_US elinks'
alias K='killp'
alias xv='xview zoom '
alias mp='sudo /opt/bin/mpl'
alias git-clone='/usr/libexec/git-core/git-clone'
alias git-commit='/usr/libexec/git-core/git-commit'
alias git-checkout='/usr/libexec/git-core/git-checkout'
alias gr='/opt/bin/gr'
#alias a=$1
hash -d my=/opt/my
hash -d i=/etc/init.d
hash -d fl=/media/usbdisk
hash -d h=/media/usbdisk/2home
hash -d w=/media/usbdisk/2work
hash -d oopt=/media/opt
hash -d oetc=/media/root/etc
hash -d ousr=/media/usr
hash -d ovar=/media/var
hash -d otmp=/media/tmp
hash -d owork=/media/work
hash -d sh=/media/music/SilentHill
hash -d ministry=/media/music/Ministry
hash -d minipig=/media/music/MiniPig
hash -d che1=/media/music/Chelentano1
hash -d che2=/media/music/Chelentano2
hash -d dvd=/media/cdrom
hash -d mus=/media/music
hash -d sy=/opt/tmp/myrepo_sisyphus
hash -d x=/media/oldx
PS1=$(echo '%{\033[36m%}%~>%{\033[37m%} ')
RPS1=$(echo '%{\033[36m%}')\$$WINDOW$(echo '%{\033[37m%}')
#PS1=$(tput setf 3; echo -n '%~>'; tput setf 7; echo -n ' ')
#precmd()
#{
# print -Pn "\033]0;%/\a"
#}
EDITOR=vim
MANPATH=$MANPATH:/opt/local/share/man
DISPLAY=:0.0
LANG=ru_RU.UTF-8
LC_ALL=ru_RU.UTF-8
PATH=/opt/bin:/opt/local/bin:/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:/usr/lib/qt-3.3/bin:/usr/kerberos/bin:/usr/games
RPM_BUILD_ROOT=/tmp
TMPDIR=/tmp
unset CCACHE_PATH
export GCC_USE_CCACHE=1
export CCACHE_DIR=$TMPDIR/.ccache
export CC=gcc CXX=g++
export REPOCOP_CACHEDIR=/tmp/repocop
#unicode_stop
#screen -d -m
if [ -f "${HOME}/.gpg-agent-info" ]; then
. "${HOME}/.gpg-agent-info"
export GPG_AGENT_INFO
export SSH_AUTH_SOCK
export SSH_AGENT_PID
fi