moving to nu and zellij

This commit is contained in:
Chris Cochrun 2025-04-15 10:00:11 -05:00
parent 78dd7e1f0c
commit 33cdad5807
2 changed files with 22 additions and 16 deletions

View file

@ -1231,21 +1231,21 @@ in {
show_banner: false show_banner: false
} }
def start_zellij [] { # def start_zellij [] {
if 'ZELLIJ' not-in ($env | columns) { # if 'ZELLIJ' not-in ($env | columns) {
if 'ZELLIJ_AUTO_ATTACH' in ($env | columns) and $env.ZELLIJ_AUTO_ATTACH == 'true' { # if 'ZELLIJ_AUTO_ATTACH' in ($env | columns) and $env.ZELLIJ_AUTO_ATTACH == 'true' {
zellij attach -c # zellij attach -c
} else { # } else {
zellij # zellij
} # }
if 'ZELLIJ_AUTO_EXIT' in ($env | columns) and $env.ZELLIJ_AUTO_EXIT == 'true' { # if 'ZELLIJ_AUTO_EXIT' in ($env | columns) and $env.ZELLIJ_AUTO_EXIT == 'true' {
exit # exit
} # }
} # }
} # }
start_zellij # start_zellij
''; '';
}; };
environmentVariables = { EDITOR = ''"emacsclient -t"''; }; environmentVariables = { EDITOR = ''"emacsclient -t"''; };
@ -1319,12 +1319,18 @@ in {
programs.atuin = { programs.atuin = {
enable = true; enable = true;
enableNushellIntegration = false; enableNushellIntegration = true;
}; };
programs.direnv = { programs.direnv = {
enable = true; enable = true;
nix-direnv.enable = true; nix-direnv.enable = true;
enableNushellIntegration = true;
};
programs.carapace = {
enable = true;
enableNushellIntegration = true;
}; };
# programs.qutebrowser.enable = true; # programs.qutebrowser.enable = true;
@ -1407,7 +1413,7 @@ in {
padding.y = 10; padding.y = 10;
dynamic_padding = true; dynamic_padding = true;
}; };
terminal.shell.program = "fish"; terminal.shell.program = "zellij";
font = { font = {
normal = { normal = {
family = "VictorMono Nerd Font"; family = "VictorMono Nerd Font";

View file

@ -1,4 +1,4 @@
#!/usr/bin/env fish #!/usr/bin/env nu
set file $argv[1] set file $argv[1]
set new-file set new-file