Nix-Hyprland/home-manager/zsh.nix

38 lines
924 B
Nix
Raw Normal View History

2024-04-16 20:52:14 -04:00
{ config, ... }: {
programs.zsh = {
enable = true;
enableCompletion = true;
# enableAutosuggestions = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
shellAliases =
let
flakeDir = "~/nix";
in {
rb = "sudo nixos-rebuild switch --flake ${flakeDir}";
upd = "nix flake update ${flakeDir}";
upg = "sudo nixos-rebuild switch --upgrade --flake ${flakeDir}";
hms = "home-manager switch --flake ${flakeDir}";
conf = "nvim ${flakeDir}/nixos/configuration.nix";
pkgs = "nvim ${flakeDir}/nixos/packages.nix";
ll = "ls -l";
v = "nvim";
se = "sudoedit";
ff = "fastfetch";
};
history.size = 10000;
history.path = "${config.xdg.dataHome}/zsh/history";
oh-my-zsh = {
enable = true;
plugins = [ "git" "sudo" ];
theme = "agnoster"; # blinks is also really nice
};
};
}