Set prompt so it displays the current working directory.
(self)
| 40 | self.intro = "Happy 𝛑 Day. Note the full Unicode support: 😇 💩" |
| 41 | |
| 42 | def _set_prompt(self) -> None: |
| 43 | """Set prompt so it displays the current working directory.""" |
| 44 | self.cwd = os.getcwd() |
| 45 | self.prompt = stylize(f"{self.cwd} $ ", style=Color.CYAN) |
| 46 | |
| 47 | def postcmd(self, stop: bool, _line: str) -> bool: |
| 48 | """Hook method executed just after a command dispatch is finished. |