nixos/home/env/zsh.nix

22 lines
647 B
Nix
Raw Normal View History

2023-05-17 17:10:18 +01:00
{config, ...}: {
programs.zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
enableSyntaxHighlighting = true;
enableVteIntegration = true;
autocd = true;
dotDir = ".config/zsh";
historySubstringSearch.enable = true;
shellAliases = {
ll = "ls -l";
lg = "lazygit";
2023-05-16 15:59:49 +01:00
nixos-update = "sudo git -C /etc/nixos/config pull && sudo nixos-rebuild switch";
};
history.path = "${config.xdg.dataHome}/zsh/history";
};
programs.keychain.enableZshIntegration = true;
programs.starship.enableZshIntegration = true;
programs.nix-index.enableZshIntegration = true;
}