Created
July 1, 2012 01:05
-
-
Save soh-i/3026340 to your computer and use it in GitHub Desktop.
.zshrc
This file contains 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
bindkey -e | |
# pager | |
export LESS='--LONG-PROMPT' | |
#allow tab completion in the middle of a word | |
setopt COMPLETE_IN_WORD | |
#keep background processes at full speed | |
setopt NOBGNICE | |
# Core size | |
limit coredumpsize 0 | |
# restart running processes on exit | |
setopt HUP | |
## never ever beep ever | |
setopt NO_BEEP | |
## automatically decide when to page a list of completions | |
LISTMAX=0 | |
autoload -U colors | |
## History | |
HISTFILE=~/.zsh_history | |
HISTSIZE=1000000 | |
SAVEHIST=$HISTSIZE | |
setopt extended_history #add time | |
setopt inc_append_history | |
setopt hist_verify | |
setopt share_history | |
setopt hist_ignore_dups | |
bindkey '^R' history-incremental-pattern-search-backward | |
bindkey '^S' history-incremental-pattern-search-forward | |
## Prompt | |
setopt prompt_subst | |
PROMPT="%U@%m >> %u" | |
RPROMPT="[%/]" | |
## comletion | |
setopt magic_equal_subst | |
setopt auto_list | |
setopt list_types | |
setopt auto_menu | |
setopt auto_param_keys | |
setopt auto_param_slash | |
zstyle ':completion:*:default' menu select=1 | |
zstyle ':completion:*' list-colors di=34 fi=0 | |
autoload history-search-end | |
zle -N history-beginning-search-backward-end history-search-end | |
zle -N history-beginning-search-forward-end history-search-end | |
bindkey "^P" history-beginning-search-backward-end | |
bindkey "^N" history-beginning-search-forward-end | |
setopt list_packed | |
## job | |
setopt long_list_jobs | |
## logout | |
setopt ignore_eof | |
unset autologout | |
## cd | |
setopt auto_cd | |
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}' | |
setopt auto_pushd | |
setopt pushd_ignore_dups | |
# autojump | |
## initialize | |
autoload -U compinit | |
compinit -u |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment