Shell - tmuxp.shell¶
Utility and helper methods for tmuxp.
-
tmuxp.shell.has_ptipython()¶
Return True if ptpython + ipython are both installed.
- Return type:
-
tmuxp.shell.detect_best_shell()¶
Return the best, most feature-rich shell available.
- Return type:
CLIShellLiteral
-
tmuxp.shell.get_bpython(options, extra_args=None)¶
Return bpython shell.
-
tmuxp.shell.get_ipython_arguments()¶
Return ipython shell args via
IPYTHON_ARGUMENTSenvironment variables.
-
tmuxp.shell.get_ipython(options, **extra_args)¶
Return ipython shell.
-
tmuxp.shell.get_ptpython(options, vi_mode=False)¶
Return ptpython shell.
-
tmuxp.shell.get_ptipython(options, vi_mode=False)¶
Based on django-extensions.
Run renamed to launch, get_imported_objects renamed to get_launch_args
-
tmuxp.shell.get_launch_args(**kwargs)¶
Return tmuxp shell launch arguments, counting for overrides.
- Parameters:
kwargs (Unpack[LaunchOptionalImports])
- Return type:
LaunchImports
-
tmuxp.shell.launch(shell='best', use_pythonrc=False, use_vi_mode=False, **kwargs)¶
Launch interactive libtmux shell for tmuxp shell.