My Zsh config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.3 KiB

#!/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=65536
SAVEHIST=65536
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
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
export COLORTERM=truecolor
PROMPT_COLOR=36m
HOST_COLOR=31m