Skip to content

Instantly share code, notes, and snippets.

@demicuz
Last active August 4, 2022 19:59
Show Gist options
  • Save demicuz/0d434a27300149d529abd4220b7fd255 to your computer and use it in GitHub Desktop.
Save demicuz/0d434a27300149d529abd4220b7fd255 to your computer and use it in GitHub Desktop.
Limit maximum width of `man` output in fish shell
function man
if test $COLUMNS -gt 80
set -gx MANWIDTH 80
else
set -gx MANWIDTH $COLUMNS
end
command man --no-hyphenation --no-justification $argv
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment