zshrc - Why doesn't incremental history search work in zsh? -


i'm trying rid of oh-my-zsh , biggest challenge getting incremental history search working. i've acked , grepped way through code , there's no clues in site. error : no such widget 'histrory-beginning-search-backward'

edit: i've tried absolute least possible code, still doesn't work. here's reduced test case:

# key bindings bindkey -v function zle-line-init zle-keymap-select {     rps1="${${keymap/vicmd/normal}/(main|viins)/insert}"     rps2=$rps1     zle reset-prompt } zle -n zle-line-init zle -n zle-keymap-select  bindkey -m vicmd '^r' histrory-beginning-search-backward bindkey -m viins '^r' histrory-beginning-search-backward 

here's config, taken zsh config wizzard, current zshrc , oh-my-zsh:

autoload zkbd  # following lines added compinstall  zstyle ':completion:*' completer _expand _complete _ignored _correct _approximate zstyle ':completion:*' matcher-list 'm:{a-za-z}={a-za-z}' 'r:|[._-]=* r:|=*' 'l:|=* r:|=*'zstyle ':completion:*' verbose true zstyle :compinstall filename '/home/jonathan/.zshrc' zstyle ':completion:*' list-colors '' zstyle ':completion::complete:*' use-cache 1 zstyle ':completion::complete:*' cache-path $home/.cache/zsh #load colorstuff autoload -uz compinit autoload -u colors && colors compinit # end of lines added compinstall # lines configured zsh-newuser-install histfile=~/.histfile histsize=1000 savehist=1000 setopt extendedglob unsetopt beep nomatch notify # end of lines configured zsh-newuser-install setopt completealiases # ignore boring stuff zstyle ':completion:*:*:*:users' ignored-patterns \ adm amanda apache @ avahi avahi-autoipd beaglidx bin cacti canna \ clamav daemon dbus distcache dnsmasq dovecot fax ftp games gdm \ gkrellmd gopher hacluster haldaemon halt hsqldb ident junkbust kdm \ ldap lp mail mailman mailnull man messagebus mldonkey mysql nagios \ named netdump news nfsnobody nobody nscd ntp nut nx obsrun openvpn \ operator pcap polkitd postfix postgres privoxy pulse pvm quagga radvd \ rpc rpcuser rpm rtkit scard shutdown squid sshd statd svn sync tftp \ usbmux uucp vcsa wwwrun xfs '_*' zstyle ':completion:*:functions' ignored-patterns '_*' # completion dots expand-or-complete-with-dots() {     echo -n "\e[31m......\e[0m"     zle expand-or-complete     zle redisplay } zle -n expand-or-complete-with-dots bindkey "^i" expand-or-complete-with-dots # prompt stuff *truncated*   # key bindings bindkey -v function zle-line-init zle-keymap-select {     rps1="${${keymap/vicmd/normal}/(main|viins)/insert}"     rps2=$rps1     zle reset-prompt } zle -n zle-line-init zle -n zle-keymap-select  bindkey -m vicmd '^r' histrory-beginning-search-backward bindkey -m viins '^r' histrory-beginning-search-backward  function run-again {     zle up-history     zle accept-line } zle -n run-again bindkey -m viins '^w' run-again bindkey -m vicmd '^w' run-again bindkey -m viins ' ' magic-space # [space] - history expansion bindkey '^[[1;5c' forward-word # [ctrl-rightarrow] - move forward 1 word bindkey '^[[1;5d' backward-word # [ctrl-leftarrow] - move backward 1 word if [[ "${terminfo[kcbt]}" != "" ]]; bindkey -m viins "${terminfo[kcbt]}" reverse-menu-complete # [shift-tab] - move through completion menu backwards fi  dirstackfile="$home/.cache/zsh/dirs" if [[ -f dirstackfile ]] && [[ $#dirstack -eq 0 ]];     dirstack=( ${(f)"$(< $dirstackfile)"} )     [[ -d $dirstack[1] ]] && builtin cd $dirstack[1] fi chpwd() {     print -l $pwd ${(u)dirstack} > $dirstackfile }  dirstacksize=20 setopt autopushd pushdsilent pushdtohome # remove duplicate entries setopt pushdignoredups #revert plus , minus operators. setopt pushdminus  #path info truncated 

what doing wrong?

whoops... had typo, feel dumb. had histrory, when should history..


Popular posts from this blog