configuration.nix/modules/home/programs/zsh/default.nix

36 lines
900 B
Nix
Raw Normal View History

2023-11-18 10:51:24 +01:00
{ pkgs, ... }:
2023-11-14 15:50:11 +01:00
{
2023-11-18 10:51:24 +01:00
programs.zsh = {
enable = true;
syntaxHighlighting.enable = true;
2024-04-02 09:42:28 +02:00
autosuggestion.enable = true;
2023-11-18 10:51:24 +01:00
loginExtra = ''
[ "$(tty)" = "/dev/tty1" ] && exec sway
'';
sessionVariables = {
PASSWORD_STORE_DIR = "$HOME/.password-store";
2023-11-30 18:54:56 +01:00
PAGER = "bat";
2023-11-18 10:51:24 +01:00
};
shellAliases = {
cal = "cal $(date +%Y)";
ssh = "TERM=xterm-256color ssh";
2023-11-19 14:05:39 +01:00
GG = "git add . && git commit -m 'GG' && git push --set-upstream origin HEAD";
2023-11-18 10:51:24 +01:00
gad = "git add . && git diff --cached";
gac = "ga && gc";
gach = "gac -C HEAD";
ga = "git add .";
gc = "git commit";
dev = "nix develop --command $SHELL";
la = "ls -alh";
torrent = "transmission-remote";
vi = "nvim";
};
2023-11-20 06:40:25 +01:00
shellGlobalAliases = {
comp = "-vcodec libx265 -crf 28";
};
2023-11-18 10:51:24 +01:00
history = {
expireDuplicatesFirst = true;
2023-11-14 15:50:11 +01:00
};
};
}