fix: Properly evaluate $XDG_CONFIG_HOME in rc.conf (#555)

This commit is contained in:
Jackson Law 2020-04-10 13:39:20 -07:00 committed by GitHub
parent fa0deff9a5
commit aca8e7302b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 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 show_hidden false
set confirm_on_delete multiple set confirm_on_delete multiple
set preview_script ${XDG_CONFIG_HOME:-$HOME/.config}/ranger/scope.sh
set use_preview_script true set use_preview_script true
set automatically_count_files true set automatically_count_files true
set open_all_images 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 #Downloading
map ytv console shell youtube-dl -ic%space map ytv console shell youtube-dl -ic%space
map yta console shell youtube-dl -xic%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'))