atuin-fzf
Combine atuin and fzf for a familiar yet powerful search of command history.
Preview
Why?
atuin is great for extended command history, it stores additional metadata (directory, duration), uses a database, and supports synchronization across machines.
However, I found the interface lacking compared to fzf, so I thought why not use atuin as the backend, and fzf as the interface.
Install
- Install atuin as per the quickstart or install directions.
- Download
atuin-fzf from the Releases.
- Enable
atuin-fzf to be used for Ctrl-R instead of atuin:
eval "$(atuin init zsh --disable-up-arrow --disable-ctrl-r)"
eval "$(atuin-fzf --zsh)"
# Note: The above assumes atuin-fzf is in your PATH.
Note: Only zsh is currently supported.
Features
- Shows the exit status, and whether commands were run in the current directory as part of the primary fzf view.
- Uses fzf previews to show more details about the comamnd (where it was run, duration, other similar commands)
- Supports changing directory into the directory where a previous command was run (Ctrl-O).
- Supports copying the command into the clipboard (macOS only) (Ctrl-Y).