dotfiles/modules/cli/zsh.nix

41 lines
963 B
Nix

{ config, lib, pkgs, inputs, ... }:
{
environment.pathsToLink = [ "/share/zsh" ];
home-manager.users.moritz = {
home.packages = with pkgs; [ du-dust ];
programs = {
zsh = {
enable = true;
dotDir = ".config/zsh";
history = { expireDuplicatesFirst = true; };
shellAliases = {
du = "dust";
ls = "exa -lh";
cat = "bat";
feh = "feh --auto-zoom --scale-down";
};
enableSyntaxHighlighting = true;
enableAutosuggestions = true;
enableCompletion = true;
# initExtra = ''export DIRENV_LOG_FORMAT=""'';
plugins = [{
name = "forgit";
src = inputs.forgit-git;
}];
};
exa.enable = true;
bat.enable = true;
fzf = {
enable = true;
enableZshIntegration = true;
};
starship = {
enable = true;
enableZshIntegration = true;
};
};
};
}