-
Notifications
You must be signed in to change notification settings - Fork 0
/
zsh.nix
59 lines (54 loc) · 1.32 KB
/
zsh.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{ pkgs, lib, config, ... }:
{
home-manager.users.jabbu = { pkgs, ... }:
{
fonts.fontconfig.enable = true;
home.packages = with pkgs; [
meslo-lgs-nf
];
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
autocd = true;
sessionVariables = {
TERM="xterm-256color";
};
zplug = {
enable = true;
plugins = [{
name = "romkatv/powerlevel10k";
tags = [ "as:theme" "depth:1" ];
}];
};
history = {
save = 100;
size = 100;
path = "$HOME/.cache/zsh_history";
ignoreAllDups = true;
};
plugins = [
{
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
{
name = "powerlevel10k-config";
src = ./p10k-config;
file = "p10k.zsh";
}
{
name = "zsh-nix-shell";
file = "nix-shell.plugin.zsh";
src = pkgs.fetchFromGitHub {
owner = "chisui";
repo = "zsh-nix-shell";
rev = "v0.7.0";
sha256 = "149zh2rm59blr2q458a5irkfh82y3dwdich60s9670kl3cl5h2m1";
};
}
];
};
};
}