dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README

commit 03fbe99233c88e5cf18b63364243b08ba6072971
parent 5a788283d3714310e83680aacf95dab97818f204
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date:   Thu, 30 Apr 2026 14:02:19 -0300

python: use python_history in .bash_profile

Diffstat:
D.config/python/pythonstartup.py | 31-------------------------------
1 file changed, 0 insertions(+), 31 deletions(-)

diff --git a/.config/python/pythonstartup.py b/.config/python/pythonstartup.py @@ -1,31 +0,0 @@ -import atexit -import os -import readline - -history = os.path.join( - os.path.expanduser(os.environ["XDG_DATA_HOME"]), - "python", - "python_history", -) -os.makedirs(os.path.dirname(history), exist_ok=True) - -try: - readline.read_history_file(history) -except OSError: - pass - - -def write_history(): - import readline - - try: - readline.write_history_file(history) - except OSError: - pass - - -atexit.register(write_history) - -del os -del atexit -del readline