From 33cdad5807ca2acae582f341b906eaaa8620193c Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 15 Apr 2025 10:00:11 -0500 Subject: [PATCH] moving to nu and zellij --- home/home.nix | 36 +++++++++++++++++++++--------------- scripts/video-archive | 2 +- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git a/home/home.nix b/home/home.nix index 85f7d9d..5861d63 100644 --- a/home/home.nix +++ b/home/home.nix @@ -1231,21 +1231,21 @@ in { show_banner: false } - def start_zellij [] { - if 'ZELLIJ' not-in ($env | columns) { - if 'ZELLIJ_AUTO_ATTACH' in ($env | columns) and $env.ZELLIJ_AUTO_ATTACH == 'true' { - zellij attach -c - } else { - zellij - } + # def start_zellij [] { + # if 'ZELLIJ' not-in ($env | columns) { + # if 'ZELLIJ_AUTO_ATTACH' in ($env | columns) and $env.ZELLIJ_AUTO_ATTACH == 'true' { + # zellij attach -c + # } else { + # zellij + # } - if 'ZELLIJ_AUTO_EXIT' in ($env | columns) and $env.ZELLIJ_AUTO_EXIT == 'true' { - exit - } - } - } + # if 'ZELLIJ_AUTO_EXIT' in ($env | columns) and $env.ZELLIJ_AUTO_EXIT == 'true' { + # exit + # } + # } + # } - start_zellij + # start_zellij ''; }; environmentVariables = { EDITOR = ''"emacsclient -t"''; }; @@ -1319,12 +1319,18 @@ in { programs.atuin = { enable = true; - enableNushellIntegration = false; + enableNushellIntegration = true; }; programs.direnv = { enable = true; nix-direnv.enable = true; + enableNushellIntegration = true; + }; + + programs.carapace = { + enable = true; + enableNushellIntegration = true; }; # programs.qutebrowser.enable = true; @@ -1407,7 +1413,7 @@ in { padding.y = 10; dynamic_padding = true; }; - terminal.shell.program = "fish"; + terminal.shell.program = "zellij"; font = { normal = { family = "VictorMono Nerd Font"; diff --git a/scripts/video-archive b/scripts/video-archive index 6927edb..1ff3617 100755 --- a/scripts/video-archive +++ b/scripts/video-archive @@ -1,4 +1,4 @@ -#!/usr/bin/env fish +#!/usr/bin/env nu set file $argv[1] set new-file