diff --git a/zsh/zshrc b/zsh/zshrc index b8a07dc..b4b3a7d 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -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 @@ -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 @@ -139,7 +137,6 @@ else fi - #setup ~/.dir_colors if one doesn\'t exist if [ ! -s ~/.dir_colors ]; then dircolors -p > ~/.dir_colors @@ -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 @@ -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 @@ -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 )) @@ -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} ' -