nixos/home/zsh/default.nix

18 lines
427 B
Nix
Raw Normal View History

2024-02-27 21:20:00 +00:00
{ user, pkgs, ... }: {
2024-02-27 09:09:03 +00:00
home.packages = with pkgs; [ fd ];
programs.zsh = {
enable = true;
autocd = false;
enableAutosuggestions = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
2024-02-27 20:59:29 +00:00
shellAliases = {
2024-03-02 20:16:23 +00:00
nrebuild = "sudo nixos-rebuild switch --flake /home/${user}/nixos";
2024-02-27 20:59:29 +00:00
};
initExtra = ''
bindkey -v
bindkey '^R' history-incremental-search-backward
'';
2024-02-27 09:09:03 +00:00
};
}