-
Notifications
You must be signed in to change notification settings - Fork 0
/
zsh.nix
38 lines (37 loc) · 860 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
# ▀█ █▀ █░█ ▀
# █▄ ▄█ █▀█ ▄
# -- -- -- --
{ config, pkgs, ... }: {
programs.zsh = {
enable = true;
enableCompletion = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
dotDir = ".config/zsh";
history = {
save = 10000;
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";
};
sessionVariables = {
PATH = "/home/${config.home.username}/.local/bin:$PATH";
EDITOR = "nvim";
VISUAL = "code";
};
shellAliases = {
docker = "sudo docker";
docker-compose = "sudo docker-compose";
};
oh-my-zsh = {
enable = true;
plugins = ["git"];
extraConfig = ''
if [[ "$TERM" = "linux" ]]; then
ZSH_THEME="jonathan"
else
ZSH_THEME="gnzh"
fi
'';
};
};
}