FrameworkNix/programs/zsh.nix

41 lines
982 B
Nix
Raw Normal View History

2024-02-21 14:21:46 +00:00
{ pkgs, ... }:
2024-02-19 23:19:01 +00:00
{
# Zsh config
programs.zsh = {
enable = true;
initExtra = "
hyfetch
";
shellAliases = {
ll = "ls -l";
please = "sudo";
2024-02-22 19:27:34 +00:00
update = "sudo nixos-rebuild switch --flake /etc/nixos/#sam";
2024-02-21 14:46:57 +00:00
vim = "nix run git+https://git.saragerretsen.nl/Hertog/FrameworkNix#vim";
vimUpdate = "nix run --refresh git+https://git.saragerretsen.nl/Hertog/FrameworkNix#vim";
sudovim = "sudo nix run git+https://git.saragerretsen.nl/Hertog/FrameworkNix#vim";
2024-02-19 23:19:01 +00:00
};
plugins = [
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.7.0";
sha256 = "149zh2rm59blr2q458a5irkfh82y3dwdich60s9670kl3cl5h2m1";
};
}
];
oh-my-zsh = {
enable = true;
plugins = [
"git"
"thefuck"
"sudo"
];
theme = "mh";
};
};
}