shallowbit
7/16/2019 - 4:17 AM

FZF Directly executing the command (CTRL-X CTRL-R)

#ZSH
fzf-history-widget-accept() {
  fzf-history-widget
  zle accept-line
}
zle     -N     fzf-history-widget-accept
bindkey '^X^R' fzf-history-widget-accept

#BASH
bind "$(bind -s | grep '^"\\C-r"' | sed 's/"/"\\C-x/' | sed 's/"$/\\C-m"/')"