mirror of
https://github.com/Andrey0189/nixos-config-reborn.git
synced 2025-09-15 10:06:00 +03:00
42 lines
892 B
Nix
42 lines
892 B
Nix
{ config, ... }: {
|
|
programs.zsh = {
|
|
enable = true;
|
|
enableCompletion = true;
|
|
autosuggestion.enable = true;
|
|
syntaxHighlighting.enable = true;
|
|
|
|
shellAliases =
|
|
let
|
|
flakeDir = "~/flake";
|
|
in {
|
|
sw = "nh os switch";
|
|
upd = "nh os switch --update";
|
|
upg = "nh os switch";
|
|
hms = "nh home switch";
|
|
|
|
pkgs = "nvim ${flakeDir}/nixos/packages.nix";
|
|
|
|
v = "nvim";
|
|
se = "sudoedit";
|
|
microfetch = "microfetch && echo";
|
|
|
|
gs = "git status";
|
|
ga = "git add";
|
|
gc = "git commit";
|
|
gp = "git push";
|
|
|
|
".." = "cd ..";
|
|
};
|
|
|
|
history.size = 10000;
|
|
history.path = "${config.xdg.dataHome}/zsh/history";
|
|
|
|
# Not needed since I'm using starship
|
|
# oh-my-zsh = {
|
|
# enable = true;
|
|
# plugins = [ "git" "sudo" ];
|
|
# theme = "agnoster"; # blinks is also really nice
|
|
# };
|
|
};
|
|
}
|