summaryrefslogtreecommitdiff
path: root/lf
diff options
context:
space:
mode:
Diffstat (limited to 'lf')
-rw-r--r--lf/lfrc18
1 files changed, 18 insertions, 0 deletions
diff --git a/lf/lfrc b/lf/lfrc
new file mode 100644
index 0000000..43b2319
--- /dev/null
+++ b/lf/lfrc
@@ -0,0 +1,18 @@
+set ignorecase true
+set info size:time
+
+# bindings
+map . set hidden!
+map <delete> delete
+map S shell
+map s calcdirsize
+map <enter> $bash
+map b $btop
+
+# run shell scripts by pressing l on them
+map l ${{
+ case $(file --mime-type -b "$f") in
+ text/x-shellscript) sh "$f" ;;
+ *) lf -remote "send $id open" ;;
+ esac
+}}