summaryrefslogtreecommitdiffstats
path: root/.config/lf/lfrc
diff options
context:
space:
mode:
authorJackson Law <178053+jlaw@users.noreply.github.com>2020-04-10 13:39:32 -0700
committerGitHub <noreply@github.com>2020-04-10 16:39:32 -0400
commit48375b04e09674b84745fd5c4146e4420dc6fbd5 (patch)
treea3fa80ed14dcf49dc2d39ee3ce4cccdac8a5134b /.config/lf/lfrc
parentaca8e7302b7c9ebeb298fdc764cb61be8eb2e2ca (diff)
downloadeibhear-48375b04e09674b84745fd5c4146e4420dc6fbd5.tar.gz
eibhear-48375b04e09674b84745fd5c4146e4420dc6fbd5.tar.zst
eibhear-48375b04e09674b84745fd5c4146e4420dc6fbd5.zip
chore: Use $XDG_CONFIG_HOME in lfrc (#554)
Diffstat (limited to '.config/lf/lfrc')
-rw-r--r--.config/lf/lfrc4
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index 7f12ad7..e3c7273 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -2,7 +2,6 @@
# Basic vars
set shell bash
-set previewer ~/.config/lf/scope
set shellopts '-eu'
set ifs "\n"
set scrolloff 10
@@ -10,6 +9,9 @@ set color256
set icons
set period 1
+# Vars that depend on environmental variables
+$lf -remote "send $id set previewer ${XDG_CONFIG_HOME:-$HOME/.config}/lf/scope"
+
# cmds/functions
cmd open ${{
case $(file --mime-type $f -b) in