2023-05-17 17:10:18 +01:00
|
|
|
{config, ...}: {
|
2023-03-29 15:38:01 +01:00
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
2023-05-28 15:12:46 +01:00
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
enableSyntaxHighlighting = true;
|
|
|
|
enableVteIntegration = true;
|
|
|
|
autocd = true;
|
|
|
|
dotDir = ".config/zsh";
|
|
|
|
historySubstringSearch.enable = true;
|
2023-05-16 15:58:12 +01:00
|
|
|
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";
|
2023-05-16 15:58:12 +01:00
|
|
|
};
|
2023-05-28 15:12:46 +01:00
|
|
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
2023-03-29 15:38:01 +01:00
|
|
|
};
|
2023-04-29 12:38:42 +01:00
|
|
|
programs.keychain.enableZshIntegration = true;
|
|
|
|
programs.starship.enableZshIntegration = true;
|
2023-05-12 15:27:21 +01:00
|
|
|
programs.nix-index.enableZshIntegration = true;
|
2023-03-29 15:38:01 +01:00
|
|
|
}
|