dotfiles/.config/pythonrc
Trysdyn Black a1a852dee1 Remove explicit tab complete from Python REPL
This is apparently default behavior now.
2023-05-05 16:55:48 -07:00

16 lines
367 B
Text

try:
import readline
except ImportError:
print("Module readline not available.")
else:
# Don't write history on exit
readline.write_history_file = lambda *args: None
# Try to install rich's prettification stuff
try:
from rich import pretty
except ImportError:
print("Failed to import Rich for CLI prettification")
else:
pretty.install()