mirror of
https://github.com/Andrey0189/nixos-config-reborn.git
synced 2025-09-15 10:06:00 +03:00
add as a separate module
This commit is contained in:
36
home-manager/modules/zsh.nix
Normal file
36
home-manager/modules/zsh.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ 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";
|
||||
|
||||
conf = "nvim ${flakeDir}/nixos/configuration.nix";
|
||||
pkgs = "nvim ${flakeDir}/nixos/packages.nix";
|
||||
|
||||
ll = "ls -l";
|
||||
v = "nvim";
|
||||
se = "sudoedit";
|
||||
microfetch = "microfetch && echo";
|
||||
};
|
||||
|
||||
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
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user