MCPcopy Index your code
hub / github.com/ipython/ipython / init_alias

Method init_alias

IPython/terminal/interactiveshell.py:980–990  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

978 self.register_magics(TerminalMagics)
979
980 def init_alias(self):
981 # The parent class defines aliases that can be safely used with any
982 # frontend.
983 super(TerminalInteractiveShell, self).init_alias()
984
985 # Now define aliases that only make sense on the terminal, because they
986 # need direct access to the console in a way that we can't emulate in
987 # GUI or web frontend
988 if os.name == 'posix':
989 for cmd in ('clear', 'more', 'less', 'man'):
990 self.alias_manager.soft_define_alias(cmd, cmd)
991
992 def __init__(self, *args, **kwargs) -> None:
993 super().__init__(*args, **kwargs)

Callers

nothing calls this directly

Calls 1

soft_define_aliasMethod · 0.80

Tested by

no test coverage detected