Skip to content

Instantly share code, notes, and snippets.

@x1024
Created November 8, 2016 12:33
Show Gist options
  • Save x1024/50c563ba6aa9d4ca71010e4c746353bb to your computer and use it in GitHub Desktop.
Save x1024/50c563ba6aa9d4ca71010e4c746353bb to your computer and use it in GitHub Desktop.
"woman" shell command
function woman() {
if [ $# -eq 0 ]; then
man
else
man $1 | head -n `expr \`man $1 | wc -l\` \* 77 / 100 ` | $PAGER
fi
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment