2012-05-18 13:09:58 +04:00
|
|
|
#!/bin/zsh
|
|
|
|
# vim: set filetype=zsh
|
|
|
|
|
|
|
|
ZDOTDIR=~/.zsh
|
|
|
|
|
|
|
|
export BC_ENV_ARGS="--quiet --mathlib"
|
|
|
|
|
|
|
|
export HISTTIMEFORMAT="%t%d.%m.%y %H:%M:%S%t"
|
|
|
|
export HISTCONTROL="ignoredupes"
|
|
|
|
export HISTIGNORE="&:ls:[bf]g:exit: cd \"\`*: PROMPT_COMMAND=\'*:cd \'/*"
|
|
|
|
export PROMPT_COMMAND='history -a'
|
|
|
|
|
|
|
|
export PATH="$PATH:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:$HOME/scripts:$HOME/bin"
|
|
|
|
[ -x /usr/bin/src-hilite-lesspipe.sh ] && export LESSOPEN="| /usr/bin/src-hilite-lesspipe.sh %s"
|
|
|
|
export LESS=' -R '
|
|
|
|
[ -x /usr/bin/vim ] && export EDITOR=/usr/bin/vim
|
|
|
|
|
|
|
|
# type a directory's name to cd to it
|
|
|
|
compctl -/ cd
|
|
|
|
|
|
|
|
# tab completion for PID :D
|
|
|
|
zstyle ':completion:*:*:kill:*' menu yes select
|
|
|
|
zstyle ':completion:*:kill:*' force-list always
|
|
|
|
|
|
|
|
HISTFILE=~/.zsh/.histfile
|
|
|
|
HISTSIZE=1000
|
|
|
|
SAVEHIST=1000
|
|
|
|
|
|
|
|
export LANG="ru_RU.UTF-8"
|
|
|
|
export LC_PAPER="ru_RU.UTF-8"
|
|
|
|
export LC_MEASUREMENT="ru_RU.UTF-8"
|
|
|
|
export LC_TIME="ru_RU.UTF-8"
|
|
|
|
#export LC_ALL="en_US.UTF-8"
|
|
|
|
|
|
|
|
case $TERM in
|
|
|
|
screen)
|
|
|
|
export PROMPT_COMMAND='echo -n -e "\033k\033\\"'
|
|
|
|
;;
|
|
|
|
esac
|
2013-03-15 12:28:43 +04:00
|
|
|
|
2013-03-18 17:20:17 +04:00
|
|
|
if [[ "linux" == "$TERM" && -f $HOME/.dircolors ]]; then
|
|
|
|
eval $(dircolors -b $HOME/.dircolors)
|
|
|
|
elif [[ "linux" != "$TERM" && -f $HOME/.dircolors_256 ]]; then
|
|
|
|
eval $(dircolors -b $HOME/.dircolors_256)
|
|
|
|
fi
|