xonecas.io
5119
Lh

lazy-history / files

lazy-history / scripts / rc-zsh.sh

221 bytes
1
2
3# Define the lazy-history widget function
4lazy-history-widget() {
5  BUFFER="lazy-history"
6  zle accept-line
7}
8
9# Create the widget
10zle -N lazy-history-widget
11
12# Bind the widget to Ctrl+R
13bindkey '^R' lazy-history-widget