You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I upgraded delta on Windows (from 0.15.1) and my pager stopped running. I found that it does not honor the PAGER environment variable, but it does honor DELTA_PAGER, as well as the --pager command line argument.
> delta --version
delta 0.18.2# The PAGER environment variable is set, and includes double-quotes in the value>$env:PAGER"C:\Program Files\Git\usr\bin\less.exe"# DELTA_PAGER is not set>$env:DELTA_PAGER# Pager does not launch, Process Monitor shows that it didn't even attempt# to launch less> echo "hi"| delta --paging always
All of the following will launch the pager:
# Using --pager> echo "hi"| delta --paging always --pager '"C:\Program Files\Git\usr\bin\less.exe"'# Setting `delta.pager` in ~/.gitconfig (Not sure how to show this from# a command, because I need the ' and " to both appear in the config file# and quotes are hard to get right on Windows)# Setting DELTA_PAGER to the current value of PAGER>$env:DELTA_PAGER=$env:PAGER> echo "hi"| delta --paging always
# Version 0.15.1 does launch the pager> del Env:\DELTA_PAGER
> C:\Temp\delta.exe--version
delta 0.15.1> echo "hi"| C:\Temp\delta.exe--paging always
Environment:
Windows 11
Terminal: Windows Terminal
Shell: PowerShell 7.4.7
The text was updated successfully, but these errors were encountered:
I upgraded delta on Windows (from 0.15.1) and my pager stopped running. I found that it does not honor the
PAGER
environment variable, but it does honorDELTA_PAGER
, as well as the--pager
command line argument.All of the following will launch the pager:
Environment:
The text was updated successfully, but these errors were encountered: