MCPcopy Create free account
hub / github.com/ipython/ipython / init_alias

Method init_alias

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

Source from the content-addressed store, hash-verified

509 self.register_magics(TerminalMagics)
510
511 def init_alias(self):
512 # The parent class defines aliases that can be safely used with any
513 # frontend.
514 super(TerminalInteractiveShell, self).init_alias()
515
516 # Now define aliases that only make sense on the terminal, because they
517 # need direct access to the console in a way that we can't emulate in
518 # GUI or web frontend
519 if os.name == 'posix':
520 for cmd in ('clear', 'more', 'less', 'man'):
521 self.alias_manager.soft_define_alias(cmd, cmd)
522
523
524 def __init__(self, *args, **kwargs):

Callers

nothing calls this directly

Calls 1

soft_define_aliasMethod · 0.80

Tested by

no test coverage detected