add sane zsh config

This commit is contained in:
Rouven Seifert 2023-07-19 15:01:47 +02:00
parent da7cbfb98c
commit 32b74fefd1
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
2 changed files with 37 additions and 0 deletions

View file

@ -44,6 +44,7 @@
./modules/mautrix-telegram.nix
./modules/sogo.nix
./modules/vaultwarden.nix
./modules/zsh.nix
./modules/course-management.nix
{
fsr.enable_office_bloat = false;

36
modules/zsh.nix Normal file
View file

@ -0,0 +1,36 @@
{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
# fzf
bat
duf
];
users.defaultUserShell = pkgs.zsh;
programs.fzf = {
fuzzyCompletion = true;
keybindings = true;
};
programs.zsh = {
enable = true;
shellAliases = {
l = "ls -l";
ll = "ls -la";
la = "ls -a";
less = "bat";
};
histSize = 100000;
histFile = "~/.local/share/zsh/history";
autosuggestions = {
enable = true;
highlightStyle = "fg=#00bbbb,bold";
};
shellInit =
''
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
zsh-newuser-install () {}
'';
};
}