Skip to content

Commit f2a7c92

Browse files
authored
Simplify configuration for IPython (#25)
Fixes #23
1 parent bbe9c17 commit f2a7c92

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,7 @@ from catppuccin.extras.pygments import MacchiatoStyle
8484
A minimal configuration:
8585

8686
```python
87-
from pygments.styles import get_style_by_name
88-
89-
c = get_config()
90-
c.TerminalInteractiveShell.highlighting_style = get_style_by_name("catppuccin-mocha")
87+
c.TerminalInteractiveShell.highlighting_style = "catppuccin-mocha"
9188
```
9289

9390
Putting this into your [IPython configuration](https://ipython.readthedocs.io/en/stable/config/intro.html) and ensuring `catppuccin[pygments]` is installed in the same environment will give you Catppuccin Mocha syntax highlighting in the REPL. See [here](https://github.com/backwardspy/dots/blob/f6991570d6691212e27e266517656192f910ccbf/dot_config/ipython/profile_default/ipython_config.py) for a more complete example configuration.

0 commit comments

Comments
 (0)