diff options
-rw-r--r-- | hm/soispha/conf/python/default.nix | 9 | ||||
-rw-r--r-- | hm/soispha/conf/python/pythonrc | 2 |
2 files changed, 5 insertions, 6 deletions
diff --git a/hm/soispha/conf/python/default.nix b/hm/soispha/conf/python/default.nix index eeaccdcf..93a530c7 100644 --- a/hm/soispha/conf/python/default.nix +++ b/hm/soispha/conf/python/default.nix @@ -1,7 +1,6 @@ -{ - config, - pkgs, - ... -}: { +{config, ...}: { xdg.configFile."python/pythonrc".source = ./pythonrc; + environment.sessionVariables = { + "PYTHONSTARTUP" = "${config.xdg.configHome}/python/pythonrc"; + }; } diff --git a/hm/soispha/conf/python/pythonrc b/hm/soispha/conf/python/pythonrc index 38c48e0f..9173e131 100644 --- a/hm/soispha/conf/python/pythonrc +++ b/hm/soispha/conf/python/pythonrc @@ -2,7 +2,7 @@ import os import atexit import readline -history = os.path.join(os.environ['XDG_CACHE_HOME'], 'python_history') +history = os.path.join(os.environ['XDG_DATA_HOME'], 'python/history.py') readline.read_history_file(history) def write_history(): |