2024-02-26 15:22:46 +01:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
oh-my-zsh = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [ "git" ];
|
|
|
|
};
|
2024-03-02 19:42:56 +01:00
|
|
|
plugins = [
|
|
|
|
{
|
|
|
|
name = "zsh-nix-shell";
|
|
|
|
file = "nix-shell.plugin.zsh";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "chisui";
|
|
|
|
repo = "zsh-nix-shell";
|
|
|
|
rev = "v0.8.0";
|
|
|
|
sha256 = "1lzrn0n4fxfcgg65v0qhnj7wnybybqzs4adz7xsrkgmcsr0ii8b7";
|
|
|
|
};
|
|
|
|
}
|
2024-04-02 16:19:47 +02:00
|
|
|
{
|
|
|
|
name = "zsh-autosuggestion";
|
|
|
|
file = "zsh-autosuggestions.zsh";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "zsh-users";
|
|
|
|
repo = "zsh-autosuggestions";
|
|
|
|
rev = "v0.7.0";
|
|
|
|
sha256 = "1g3pij5qn2j7v7jjac2a63lxd97mcsgw6xq6k5p7835q9fjiid98";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{
|
|
|
|
name = "zsh-syntax-highlighting";
|
|
|
|
file = "zsh-syntax-highlighting.zsh";
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
owner = "zsh-users";
|
|
|
|
repo = "zsh-syntax-highlighting";
|
|
|
|
rev = "0.8.0";
|
|
|
|
sha256 = "1yl8zdip1z9inp280sfa5byjbf2vqh2iazsycar987khjsi5d5w8";
|
|
|
|
};
|
|
|
|
}
|
2024-03-02 19:42:56 +01:00
|
|
|
];
|
2024-02-26 15:22:46 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
programs.starship = {
|
|
|
|
enable = true;
|
|
|
|
enableZshIntegration = true;
|
2024-04-15 09:17:59 +02:00
|
|
|
settings.battery.disabled = true;
|
2024-02-26 15:22:46 +01:00
|
|
|
};
|
|
|
|
}
|