aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-05-30 17:15:12 +0100
committerMatthew Lemon <y@yulqen.org>2023-05-30 17:15:12 +0100
commit60c6aedf31221118d9678de1161a1116179ed8a8 (patch)
treef7e75e53668da249b1ed3df60557e00aa6d1ad44
parentb42cf9ae25d2a379d513360ca34c7419cf131ce1 (diff)
Adds pages and bat colouring to fzf preview
Diffstat (limited to '')
-rw-r--r--bashrc2
1 files changed, 1 insertions, 1 deletions
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