ranger: fix out-of-the-box previews

I'm guessing this became commented out by default at some point.
This commit is contained in:
Alyssa Ross 2018-09-27 18:18:06 +01:00
parent 46651b82b8
commit 4f14ccee07
No known key found for this signature in database
GPG Key ID: C4844408C0657052

View File

@ -36,7 +36,7 @@ python3Packages.buildPythonApplication rec {
# give file previews out of the box
substituteInPlace ranger/config/rc.conf \
--replace "set preview_script ~/.config/ranger/scope.sh" "set preview_script $out/share/doc/ranger/config/scope.sh"
--replace "#set preview_script ~/.config/ranger/scope.sh" "set preview_script $out/share/doc/ranger/config/scope.sh"
'' + optionalString imagePreviewSupport ''
substituteInPlace ranger/ext/img_display.py \
--replace /usr/lib/w3m ${w3m}/libexec/w3m