From 9fa6c2e95a38c3ccbe5f56a29b4cc592303712f2 Mon Sep 17 00:00:00 2001 From: Lillian-Violet Date: Wed, 23 Oct 2024 17:48:11 +0200 Subject: [PATCH] maybe the names conflict --- home-manager/shared/shell/helix/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/home-manager/shared/shell/helix/default.nix b/home-manager/shared/shell/helix/default.nix index 8d539d4..55e0684 100644 --- a/home-manager/shared/shell/helix/default.nix +++ b/home-manager/shared/shell/helix/default.nix @@ -20,7 +20,7 @@ pkgs.writeText "run_jupyter_from_helix.zsh" '' #! ~/.nix-profile/bin/zsh - function new() { + function is_new() { new=true; touch /tmp/rjh; cat /tmp/rjh | while read line @@ -33,7 +33,7 @@ } function send_to_jupyter() { - if $(new); then + if $(is_new); then zellij run -f -n "jupyter console" -- direnv exec . jupyter console --kernel="$1" -f="/tmp/rjh-$(pwd | tr \"/\" -).json" --ZMQTerminalInteractiveShell.include_other_output=True --ZMQTerminalInteractiveShell.other_output_prefix=\'\' pwd >> /tmp/rjh fi