commit 340a81083703deda9b5f8345c2cf92acaeb52ad8
parent a092432a2555f56d161caf2f951b195f7dee409e
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 8 Aug 2018 14:45:44 +0200
Disable fzf preview for history search
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/links/.profile b/links/.profile
@@ -64,6 +64,9 @@ if [ -x "$(command -v fzf)" ]; then
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_ALT_C_COMMAND="$FZF_DEFAULT_COMMAND"
+ # hide preview for searching history
+ export FZF_CTRL_R_OPTS="--exit-0 --select-1 --preview-window=up:0"
+
# use ripgrep if available
if [ -x "$(command -v rg)" ]; then
# --files: List files that would be searched but do not search