Skip to content

Commit

Permalink
Update zshrc
Browse files Browse the repository at this point in the history
  • Loading branch information
ochurlaud committed Feb 11, 2016
1 parent 24fe504 commit a35e196
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions zsh/zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,12 @@ bindkey "\eOF" end-of-line
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line

[[ -n "${key[Up]}" ]] && bindkey "${key[Up]}" history-beginning-search-backward
[[ -n "${key[Down]}" ]] && bindkey "${key[Down]}" history-beginning-search-forward

# completion in the middle of a line
bindkey '^i' expand-or-complete-prefix

setopt inc_append_history
setopt autocd nobeep extendedglob nomatch notify
setopt autolist auto_menu

# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall

Expand Down Expand Up @@ -115,7 +114,6 @@ zstyle ':completion:*:manuals.*' insert-sections true
zstyle ':completion:*:man:*' menu yes select



# Completion caching
zstyle ':completion::complete:*' use-cache on
zstyle ':completion::complete:*' cache-path .zcache
Expand All @@ -139,7 +137,6 @@ else
fi



#setup ~/.dir_colors if one doesn\'t exist
if [ ! -s ~/.dir_colors ]; then
dircolors -p > ~/.dir_colors
Expand Down Expand Up @@ -175,6 +172,9 @@ show-colors() {
done
}

setopt autocd nobeep extendedglob nomatch notify
setopt autolist auto_menu

#allow tab completion in the middle of a word
setopt COMPLETE_IN_WORD
setopt CORRECT
Expand All @@ -189,11 +189,14 @@ setopt CORRECT
## for sharing history between zsh processes
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
setopt histreduceblanks
# Remove command lines from the history list when the first character on the
# line is a space, or when one of the expanded aliases contains a leading space
setopt histignorespace
# Do not enter command lines into the history list if they are duplicates of the
# previous event.
setopt histignorealldups

## never ever beep ever
setopt NO_BEEP

setopt nonomatch # do not print error on non matched patterns
## automatically decide when to page a list of completions
#LISTMAX=0

Expand Down Expand Up @@ -323,7 +326,7 @@ precmd(){

LINE1_PROMPT="\
${EXIT_STATUS}\
%(1j. %B%F{green}?%f%b %B%F{yellow}Jobs: %j%f%b.)"
%(1j. %B%F{green}%f%b %B%F{yellow}Jobs: %j%f%b.)"

local TERMWIDTH
(( TERMWIDTH = ${COLUMNS} - 2 ))
Expand All @@ -344,4 +347,3 @@ else
fi

PROMPT=' ${PROMPT_LINE}%B%F{green}%f%b:${PR_PWDCOLOR}%1~${PR_RESET}${vcs_info_msg_0_}%f%b ${END_LINE} '

0 comments on commit a35e196

Please sign in to comment.