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

Method init_aliases

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

Source from the content-addressed store, hash-verified

208 self.init_aliases()
209
210 def init_aliases(self):
211 # Load default & user aliases
212 for name, cmd in self.default_aliases + self.user_aliases:
213 if (
214 cmd.startswith("ls ")
215 and self.shell is not None
216 and self.shell.colors == "nocolor"
217 ):
218 cmd = cmd.replace(" --color", "")
219 self.soft_define_alias(name, cmd)
220
221 @property
222 def aliases(self) -> list:

Callers 2

__init__Method · 0.95
resetMethod · 0.80

Calls 2

soft_define_aliasMethod · 0.95
replaceMethod · 0.80

Tested by

no test coverage detected