Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

4z3/fzf-plugins

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

This repository contains code that cannot be made part of fzf. PRs to add more extensions are welcome!

Bash Extensions

history-exec.bash

This extension adds the ability to choose between direct execution and prior editing in CTRL-R for bash. The keys to choose between execution and editing are configurable using the environment variables

  • FZF_CTRL_R_EDIT_KEY (defaults to "enter")
  • FZF_CTRL_R_EXEC_KEY (defaults to "ctrl-x")

Installation

First this repository need to be cloned to some conventient place. This README will expect this place to be ~/.fzf-plugins for simplicity:

git clone https://github.com/4z3/fzf-plugins ~/.fzf-plugins

Afterwards, history-exec.bash can be enabled and configured in your .bashrc like follows:

# First load fzf stuff as usual.
[ -f ~/.fzf.bash ] && source ~/.fzf.bash

# Then configure and load this plugin.
FZF_CTRL_R_EDIT_KEY=ctrl-e
FZF_CTRL_R_EXEC_KEY=enter
source ~/.fzf-plugins/history-exec.bash

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages