with A shell context manager Install Use pip (Python 3 only) pip3 install with Usage Type with followed to the command you don’t want to repeat, than type the subcommand. Eg: Type Ctrl-D to quit.