Last active
October 6, 2015 02:57
-
-
Save chaos-ad/2923656 to your computer and use it in GitHub Desktop.
zshrc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
HISTFILE=~/.histfile | |
HISTSIZE=500000 | |
SAVEHIST=500000 | |
unsetopt beep | |
bindkey -e | |
stty -ixon | |
zstyle :compinstall filename '~/.zshrc' | |
autoload -Uz compinit promptinit | |
compinit | |
promptinit; prompt gentoo | |
zstyle ':completion::complete:*' use-cache 1 | |
zstyle ':completion:*:default' list-colors '${LS_COLORS}' | |
zstyle ':completion:*:processes' command 'ps axuf' | |
zstyle ':completion:*:processes-names' command 'ps axho command' | |
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' | |
#setopt correctall | |
setopt INC_APPEND_HISTORY | |
setopt HIST_IGNORE_ALL_DUPS | |
setopt HIST_IGNORE_SPACE | |
setopt HIST_REDUCE_BLANKS | |
setopt HIST_FIND_NO_DUPS | |
setopt HIST_SAVE_NO_DUPS | |
setopt hist_ignore_all_dups | |
setopt hist_ignore_space | |
setopt autocd | |
setopt extendedglob | |
# Кэширование результатов автодополнения: | |
zstyle ':completion:*' use-cache on | |
zstyle ':completion:*' cache-path ~/.zsh/cache | |
zstyle ':completion:*:*:kill:*' menu yes select | |
zstyle ':completion:*:kill:*' force-list always | |
#exec 2>>(while read line; do | |
# print '\e[91m'${(q)line}'\e[0m' > /dev/tty; print -n $'\0'; done &) | |
# SSH hosts compl | |
local _myhosts | |
_myhosts=( ${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[0-9]*}%%\ *}%%,*} ) | |
zstyle ':completion:*' hosts $_myhosts | |
# home/end keys | |
#[[ -z "$terminfo[kdch1]" ]] || bindkey "$terminfo[kdch1]" delete-char | |
#[[ -z "$terminfo[khome]" ]] || bindkey "$terminfo[khome]" beginning-of-line | |
#[[ -z "$terminfo[kend]" ]] || bindkey "$terminfo[kend]" end-of-line | |
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 "^[[1;5C" forward-word | |
bindkey "^[[1;5D" backward-word | |
alias ls='ls --color=auto' | |
alias ll='ls --color=auto -hal' | |
alias grep='grep --colour=auto' | |
autoload -U pick-web-browser | |
alias -s {html,htm}=pick-web-browser | |
alias -s {avi,mpeg,mpg,mov,m2v,flv}=mplayer | |
alias -s {odt,doc,sxw,rtf}=openoffice.org | |
export KDEDIRS=/usr/local:/usr | |
export EDITOR=/usr/bin/vim | |
export SVN_EDITOR=/usr/bin/vim | |
export GIT_EDITOR=/usr/bin/vim | |
BROWSER=google-chrome |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment