This repository has been archived on 2026-09-17. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nixos-config/home/tnix/localModules/zsh.nix
pijukka 336aabd3ab zsh: move yazi's cd-on-quit wrapper to global config, drop tnix duplicate
y() now lives in hosts/globalServices/zsh.nix via programs.zsh.interactiveShellInit,
so it works on every host (previously only tnix had it, via home-manager,
and pinix's plain package had no cd-on-quit wrapper at all). yazi package
moved from pinix-local to global packages.nix for the same reason.

Dropped from home/tnix/localModules/zsh.nix as now-redundant: the local
yazi() function (same wrapper, bound to the wrong name and shadowed by
the global one anyway), the `y = "yazi"` alias (would have shadowed the
new global function), and a dead HYPRLAND_INSTANCE_SIGNATURE export
left over from the sway migration -- nothing in the repo references it.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-31 17:36:54 +02:00

29 lines
921 B
Nix

{
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
enable = true;
theme = "cypher"; #"robbyrussell", "bira", "agnoster" "cypher"
};
shellAliases = {
la = "ls -la";
v = "nvim";
d = "watch -n1 -t date +%H:%M";
".." = "cd ..";
"..." = "cd ../..";
cdn = "cd ~/platform";
ngp = "git -C ~/nixos-config pull";
gpn = "git -C ~/nixos-config add . && git -C ~/nixos-config commit -m 'auto' && git -C ~/nixos-config push";
nrst = "sudo nixos-rebuild switch --flake ~/platform/nixos-config#tnix";
nrsb = "nixos-rebuild switch --target-host blunix --sudo --flake ~/platform/nixos-config#blunix";
nrsp = "nixos-rebuild switch --target-host pinix --sudo --flake ~/platform/nixos-config#pinix";
nb = "gpn && nrs && cd";
};
};
}