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

Method init_aliases

IPython/core/alias.py:204–209  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

202 self.init_aliases()
203
204 def init_aliases(self):
205 # Load default & user aliases
206 for name, cmd in self.default_aliases + self.user_aliases:
207 if cmd.startswith('ls ') and self.shell.colors == 'NoColor':
208 cmd = cmd.replace(' --color', '')
209 self.soft_define_alias(name, cmd)
210
211 @property
212 def aliases(self):

Callers 2

__init__Method · 0.95
resetMethod · 0.80

Calls 1

soft_define_aliasMethod · 0.95

Tested by

no test coverage detected