diff --git a/.config/pythonrc b/.config/pythonrc index 2cf0d35..c610b88 100644 --- a/.config/pythonrc +++ b/.config/pythonrc @@ -1,3 +1,11 @@ +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: import rich.pretty diff --git a/.gitconfig b/.gitconfig index 1fb5580..036adf3 100644 --- a/.gitconfig +++ b/.gitconfig @@ -34,5 +34,3 @@ # On the plus side, lacking it should cause git to fatal so I never miss it. [include] path = ~/.gitconfig.local -[init] - defaultBranch = main