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
|def print_cmd(command, line_length=80, indent=" "):|
|import sys, textwrap|
|lines = textwrap.wrap(|
|subsequent_indent=" \\\n" + indent,|
|for line in lines:|
Sep 16, 2016
Also, the benefit is, of course, that you can copy and paste the output into your own shell.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Python script to pretty print long command line calls. Will terminate lines with the
\character and indent all lines except the first.