zsh config
This commit is contained in:
parent
3f75b0e6fc
commit
985381b85e
@ -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;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user