fruitbasket/modules/zsh.nix

34 lines
701 B
Nix
Raw Normal View History

2023-09-20 14:07:50 +02:00
{ lib, pkgs, ... }:
2023-07-19 15:01:47 +02:00
{
2023-09-19 16:03:41 +02:00
programs.command-not-found.enable = false;
programs.nix-index-database.comma.enable = true;
2023-07-19 15:01:47 +02:00
environment.systemPackages = with pkgs; [
# fzf
bat
duf
];
programs.fzf = {
keybindings = true;
};
programs.zsh = {
enable = true;
autosuggestions = {
enable = true;
highlightStyle = "fg=#00bbbb,bold";
};
2023-09-20 14:07:50 +02:00
# don't override agdsn-zsh-config aliases
2023-09-20 14:09:55 +02:00
shellAliases = lib.mkForce { };
2023-09-20 14:07:50 +02:00
2023-09-19 16:03:41 +02:00
shellInit = ''
zsh-newuser-install () {}
'';
interactiveShellInit = ''
source ${pkgs.zsh-fzf-tab}/share/fzf-tab/fzf-tab.plugin.zsh
source ${pkgs.agdsn-zsh-config}/etc/zsh/zshrc
'';
2023-09-19 21:08:53 +02:00
promptInit = "";
2023-07-19 15:01:47 +02:00
};
}