Summary: | [REGRESSION] LESS cannot be overriden anymore - breaks scrolling | ||
---|---|---|---|
Product: | systemd | Reporter: | Peter Wu <peter> |
Component: | general | Assignee: | systemd-bugs |
Status: | RESOLVED FIXED | QA Contact: | systemd-bugs |
Severity: | normal | ||
Priority: | medium | CC: | peter |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Peter Wu
2013-03-10 22:04:33 UTC
The pager can be overridden with $SYSTEMD_PAGER [1]. [1] http://www.freedesktop.org/software/systemd/man/journalctl.html#%24SYSTEMD_PAGER Yeah, I eventually figured that out, but `LESS= SYSTEMD_PAGER=less\ -FRSM journalctl` still does not work because `$LESS` is set unconditionally. Therefore, I am using this wrapper: # ~/.bashrc export SYSTEMD_PAGER=${SYSTEMD_PAGER:-$HOME/bin/less-systemd} #!/bin/sh # ~/bin/less-systemd # systemd uses: FRSXMK # F --quit-if-one-screen # R --RAW-CONTROL-CHARS # S --chop-long-lines # X --no-init # M --LONG-PROMPT # K --quit-on-intr export LESS=FRSM exec -- less "$@" |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.