commit 4239763575953f1fdd182b7c7e4274e324940fc4 parent 2cd468eb23940bc421a7b57c7e6e6e18edeeef06 Author: Chris <chris@echoz.io> Date: Fri, 28 Nov 2025 05:10:07 +0100 feat: add ipython Diffstat:
| A | modules/ipython/config.py | | | 9 | +++++++++ |
| A | modules/ipython/default.nix | | | 10 | ++++++++++ |
2 files changed, 19 insertions(+), 0 deletions(-)
diff --git a/modules/ipython/config.py b/modules/ipython/config.py @@ -0,0 +1,9 @@ +c = get_config() + +c.TerminalInteractiveShell.editing_mode = "vi" +c.TerminalIPythonApp.display_banner = False +c.TerminalInteractiveShell.confirm_exit = False +c.TerminalInteractiveShell.enable_tip = False +c.InteractiveShell.separate_in = "" +c.InteractiveShell.separate_out = "" +c.InteractiveShell.separate_out2 = "" diff --git a/modules/ipython/default.nix b/modules/ipython/default.nix @@ -0,0 +1,10 @@ +{ pkgs, ... }: +{ + environment = { + systemPackages = [ pkgs.python3Packages.ipython ]; + + etc."ipython/ipython_config.py".source = ./config.py; + + shellAliases.ipy = "ipython"; + }; +}