Skip to content

Instantly share code, notes, and snippets.

@kmdsbng
Created June 20, 2014 13:56
Show Gist options
  • Select an option

  • Save kmdsbng/90562f47ac3ccb7eb10f to your computer and use it in GitHub Desktop.

Select an option

Save kmdsbng/90562f47ac3ccb7eb10f to your computer and use it in GitHub Desktop.
function peco_and_writeback() {
BUFFER=$($LBUFFER | peco)
CURSOR=$#BUFFER
zle -R -c
}
zle -N peco_and_writeback
bindkey '^K' peco_and_writeback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment