-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzsh.nix
46 lines (39 loc) · 1014 Bytes
/
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
{pkgs, lib, ...}:
{
programs.zsh = {
enable = true;
shellAliases = {
cat = "bat";
ls = "exa -lah --group-directories-first";
neofetch = "fastfetch";
};
initExtra = ''
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
bindkey "^[[3;5~" kill-word
bindkey "^H" backward-kill-word
export PATH="/var/home/simon/.local/bin/:$PATH"
'';
enableAutosuggestions = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
plugins = [
{
name = "powerlevel10k";
src = pkgs.zsh-powerlevel10k;
file = "share/zsh-powerlevel10k/powerlevel10k.zsh-theme";
}
{
name = "powerlevel10k-config";
src = lib.cleanSource ./p10k-config;
file = "p10k.zsh";
}
];
oh-my-zsh = {
enable = false;
};
};
}