Last active
August 4, 2022 19:59
-
-
Save demicuz/0d434a27300149d529abd4220b7fd255 to your computer and use it in GitHub Desktop.
Limit maximum width of `man` output in fish shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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