diff --git a/users/pbsds/home/default.nix b/users/pbsds/home/default.nix index 38e0724..c7ecc09 100644 --- a/users/pbsds/home/default.nix +++ b/users/pbsds/home/default.nix @@ -132,6 +132,11 @@ ])) ]; + xdg.configFile."ptpython/config.py" = { + source = ./files/ptpython-config.py; + force = true; + }; + home.shellAliases = { #flexget = "ssh -t knut.pbsds.net sudo -u flexget flexget"; flexget = "sudo --user=flexget flexget -c /var/lib/flexget/flexget.yml"; # TODO: only applies to nox... diff --git a/users/pbsds/home/files/ptpython-config.py b/users/pbsds/home/files/ptpython-config.py new file mode 100644 index 0000000..e9b27e8 --- /dev/null +++ b/users/pbsds/home/files/ptpython-config.py @@ -0,0 +1,5 @@ +# https://github.com/prompt-toolkit/ptpython/blob/master/examples/ptpython_config/config.py + +def configure(repl): + repl.confirm_exit = False + repl.use_code_colorscheme("lightbulb")