zsh config

This commit is contained in:
Ivan Kirilov Dimitrov 2024-06-28 11:14:36 +02:00
parent 3f75b0e6fc
commit 985381b85e
No known key found for this signature in database
GPG Key ID: 0BDAD4B211C49294

View File

@ -2,11 +2,17 @@
{ {
programs.zsh = { programs.zsh = {
enable = true; enable = true;
dotDir = ".config/zsh";
defaultKeymap = "viins";
enableVteIntegration = true;
syntaxHighlighting.enable = true; syntaxHighlighting.enable = true;
autosuggestion.enable = true; autosuggestion.enable = true;
loginExtra = '' loginExtra = ''
[ "$(tty)" = "/dev/tty1" ] && exec sway [ "$(tty)" = "/dev/tty1" ] && exec sway
''; '';
sessionVariables = {
TERM = "screen-256color";
};
shellAliases = { shellAliases = {
cal = "cal $(date +%Y)"; cal = "cal $(date +%Y)";
GG = "git add . && git commit -m 'GG' && git push --set-upstream origin HEAD"; GG = "git add . && git commit -m 'GG' && git push --set-upstream origin HEAD";
@ -22,11 +28,8 @@
vi = "nvim"; vi = "nvim";
sc = "systemctl"; sc = "systemctl";
}; };
shellGlobalAliases = { shellGlobalAliases.comp = "-vcodec libx265 -crf 28";
comp = "-vcodec libx265 -crf 28"; history.expireDuplicatesFirst = true;
}; historySubstringSearch.enable = true;
history = {
expireDuplicatesFirst = true;
};
}; };
} }