summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorself <george@gabbott.dev>2022-06-26 19:52:10 +0100
committerself <george@gabbott.dev>2022-06-26 19:52:10 +0100
commite4e14f6117854f96337526c90e921a2759d71f41 (patch)
tree347d34fbd252fe20fe9700d7edaffc8d0421d530
parent96e8392a5f89ebeedf9535c14862a5c929e2dbe4 (diff)
Add lfrc and scripts
-rw-r--r--lf/lfrc4
-rwxr-xr-xlf/preview.sh3
2 files changed, 7 insertions, 0 deletions
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 "$@"