CHips L MINI SHELL

CHips L pro

Current Path : /proc/2/root/usr/share/zsh/4.3.11/functions/
Upload File :
Current File : //proc/2/root/usr/share/zsh/4.3.11/functions/up-line-or-beginning-search

# Like up-line-or-search, but uses the whole line prefix up to the
# cursor position for searching backwards.

emulate -L zsh

if [[ $LBUFFER == *$'\n'* ]]; then
  zle .up-line-or-history
  __searching=''
elif [[ -n $PREBUFFER ]] && 
    zstyle -t ':zle:up-line-or-beginning-search' edit-buffer
then
  zle .push-line-or-edit
else
  [[ $LASTWIDGET = $__searching ]] && CURSOR=$__savecursor
  __savecursor=$CURSOR
  __searching=$WIDGET
  zle .history-beginning-search-backward
  zstyle -T ':zle:up-line-or-beginning-search' leave-cursor &&
      zle .end-of-line
fi

Copyright 2K16 - 2K18 Indonesian Hacker Rulez