Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document --pretty #56

Merged
merged 1 commit into from Aug 22, 2022
Merged

Document --pretty #56

merged 1 commit into from Aug 22, 2022

Conversation

kbd
Copy link
Contributor

@kbd kbd commented Jul 21, 2022

For many tools I desire behavior like less's --quit-if-one-screen. So, if output fills more than one screen, page it and don't spam my terminal with gobs of output.

However, piping to less often turns off many tools' automatic colorized output. Accordingly, many tools support flags to force colorized output. So, I have a small autopager script that I configure for a bunch of tools as follows:

alias http='autopager http --pretty=all'
alias https='autopager https --pretty=all'
alias jq='autopager jq -C'
alias curl='autopager curl "" -L'
alias curlie='autopager curlie --pretty -L'
alias xh='autopager xh --pretty=all'
alias yq='autopager yq -C'

I had to read curlie's source to (happily) discover that curlie supports the same pattern. This PR documents the flag.

@rs rs merged commit 631fca5 into rs:master Aug 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants