Re: [iterm2-discuss] Command Output Opens less Automatically

188 views
Skip to first unread message

Adrian Bool

unread,
Oct 3, 2021, 4:37:53 AM10/3/21
to iterm2-...@googlegroups.com

Hi Omer,

You could try prepending your command with 'PAGER=cat'.

if the command you're using is using the standard  $PAGER environment variable (which defaults to "less"); then this would cause 'cat' to be used instead and therefore just dumping out the commands output direct into iTerm.

e.g. if the command you're running was 'ls'; change,

ls

to,

PAGER=cat ls

Cheers,

aid

On 3 Oct 2021, at 09:19, Omer Dolev <om...@totango.com> wrote:

Hello,

When I run a command whose output is longer than the terminal window, it automatically views the output using less, which I don't want to happen.
Is there a configuration I can change so that command outputs, no matter the length, would just be printed to terminal?

Thank you very much
Omer

--
You received this message because you are subscribed to the Google Groups "iterm2-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to iterm2-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/iterm2-discuss/eb34dc1d-fe1e-4af4-8650-b60eed1cd809n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages