From aca8e7302b7c9ebeb298fdc764cb61be8eb2e2ca Mon Sep 17 00:00:00 2001 From: Jackson Law <178053+jlaw@users.noreply.github.com> Date: Fri, 10 Apr 2020 13:39:20 -0700 Subject: [PATCH] fix: Properly evaluate $XDG_CONFIG_HOME in rc.conf (#555) --- .config/ranger/rc.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/ranger/rc.conf b/.config/ranger/rc.conf index ba5ec84..efbb318 100644 --- a/.config/ranger/rc.conf +++ b/.config/ranger/rc.conf @@ -5,7 +5,6 @@ set column_ratios 1,3,4 set hidden_filter ^\.|\.(?:pyc|vrb|pyo|lof|bak|swp|aux|log|nav|out|snm|toc|bcf|run\.xml|synctex\.gz|blg|bbl)$|^lost\+found$|^__(py)?cache__$ set show_hidden false set confirm_on_delete multiple -set preview_script ${XDG_CONFIG_HOME:-$HOME/.config}/ranger/scope.sh set use_preview_script true set automatically_count_files true set open_all_images true @@ -505,4 +504,5 @@ map Tn eval fm.open_console('shell eyeD3 -n "" ' + fm.thisfile.relative_path, po #Downloading map ytv console shell youtube-dl -ic%space map yta console shell youtube-dl -xic%space -source ${XDG_CONFIG_HOME:-$HOME/.config}/ranger/shortcuts.conf + +eval cmd('source ' + fm.confpath('shortcuts.conf'))