blob: ccc33642e3ccbfabdce899f322c50a2a4624c58a (
plain) (
blame)
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
|
{lib, config, ...}: {
options.zsh.enable = lib.mkEnableOption "zsh config";
config = lib.mkIf config.zsh.enable {
programs.zsh = {
enable = true;
enableCompletion = true;
enableVteIntegration = true;
syntaxHighlighting.enable = true;
history.size = 10000;
oh-my-zsh = {
enable = true;
theme = "fishy";
plugins = [ "git" "ssh" ];
};
shellAliases = {
ls = "ls -lh --color=auto";
l = "ls";
ll = "ls -a";
ssh = "TERM=xterm-256color ssh";
wine = "wine64";
update-system = "sudo nixos-rebuild switch --flake ~/nixos#hermes";
update-home = "home-manager switch --flake ~/nixos#hermes";
};
initContent = ''
# Ctrl + arrow keys
bindkey '^[Oc' forward-word
bindkey '^[Od' backward-word
bindkey '^[[1;5D' backward-word
bindkey '^[[1;5C' forward-word
bindkey '^H' backward-kill-word
# Theme
autoload -U colors
colors
'';
};
};
}
|