znt-history-widget 364 B

1234567891011121314
  1. autoload znt-usetty-wrapper n-history
  2. local NLIST_START_IN_SEARCH_MODE=1
  3. local NLIST_START_IN_UNIQ_MODE=1
  4. # Only if current $BUFFER doesn't come from history
  5. if [ "$HISTCMD" = "$HISTNO" ]; then
  6. local NLIST_SET_SEARCH_TO="$BUFFER"
  7. fi
  8. znt-usetty-wrapper n-history "$@"
  9. unset NLIST_START_IN_SEARCH_MODE
  10. unset NLIST_START_IN_UNIQ_MODE
  11. unset NLIST_SET_SEARCH_TO