From 60c6aedf31221118d9678de1161a1116179ed8a8 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 30 May 2023 17:15:12 +0100 Subject: Adds pages and bat colouring to fzf preview --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 94b7674..69d0a2a 100644 --- a/bashrc +++ b/bashrc @@ -67,7 +67,7 @@ export RANGER_LOAD_DEFAULT_RC="FALSE" export FZF_DEFAULT_COMMAND='ag -l --path-to-ignore ~/.ignore --nocolor --hidden -g ""' export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" export FZF_ALT_C_COMMAND="$FZF_DEFAULT_COMMAND" -export FZF_DEFAULT_OPTS="--color info:108,prompt:109,spinner:108,pointer:168,marker:168" +export FZF_DEFAULT_OPTS="--preview='bat --color=always {}' --bind shift-up:preview-page-up,shift-down:preview-page-down --color info:108,prompt:109,spinner:108,pointer:168,marker:168" # fzf source /usr/share/fzf/key-bindings.bash -- cgit v1.2.3