From e4e14f6117854f96337526c90e921a2759d71f41 Mon Sep 17 00:00:00 2001 From: self Date: Sun, 26 Jun 2022 19:52:10 +0100 Subject: Add lfrc and scripts --- lf/lfrc | 4 ++++ lf/preview.sh | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 lf/lfrc create mode 100755 lf/preview.sh (limited to 'lf') diff --git a/lf/lfrc b/lf/lfrc new file mode 100644 index 0000000..ad4bdb2 --- /dev/null +++ b/lf/lfrc @@ -0,0 +1,4 @@ +map . set hidden! + +set previewer ~/.config/lf/preview.sh +map i $~/.config/lf/preview.sh $f | less -RX diff --git a/lf/preview.sh b/lf/preview.sh new file mode 100755 index 0000000..46582bf --- /dev/null +++ b/lf/preview.sh @@ -0,0 +1,3 @@ +#!/bin/sh +unset COLORTERM +bat --color=always --theme=base16 "$@" -- cgit v1.2.1