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";
|
2024-04-22 18:54:57 +02:00
|
|
|
TERM = "screen-256color";
|
2023-11-18 10:51:24 +01:00
|
|
|
};
|
|
|
|
shellAliases = {
|
|
|
|
cal = "cal $(date +%Y)";
|
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
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|