home-manager-configuration/zsh.nix

41 lines
933 B
Nix
Raw Permalink Normal View History

2023-02-11 01:25:49 +00:00
{ config, pkgs, ... }:
{
programs.zsh = {
enable = true;
dotDir = ".config/zsh";
2024-05-23 22:38:31 +00:00
autosuggestion.enable = true;
2023-03-10 03:54:35 +00:00
enableCompletion = true;
autocd = true;
defaultKeymap = "viins";
2023-02-11 01:25:49 +00:00
shellAliases = {
2023-02-11 02:32:33 +00:00
cat = "bat";
2023-11-29 03:58:06 +00:00
l = "eza -l";
la = "eza -la";
ls = "eza";
2023-03-10 03:54:35 +00:00
v = "lvim";
2023-02-11 01:25:49 +00:00
};
2023-11-29 03:58:06 +00:00
syntaxHighlighting.enable = true;
2023-02-11 01:25:49 +00:00
initExtra = ''
2023-03-10 03:54:35 +00:00
source "${pkgs.zsh-nix-shell}/share/zsh-nix-shell/nix-shell.plugin.zsh"
source "${pkgs.zsh-z}/share/zsh-z/zsh-z.plugin.zsh"
2023-02-11 01:25:49 +00:00
2023-03-10 03:54:35 +00:00
PATH=$PATH:$HOME/.local/bin
2023-02-11 01:25:49 +00:00
'';
plugins = with pkgs; [
{
2023-02-11 02:32:33 +00:00
name = "base16-shell";
src = fetchFromGitHub {
owner = "chriskempson";
repo = "base16-shell";
rev = "ae84047d378700bfdbabf0886c1fb5bb1033620f";
sha256 = "0qy+huAbPypEMkMumDtzcJdQQx5MVgsvgYu4Em/FGpQ=";
2023-02-11 01:25:49 +00:00
};
2023-02-11 02:32:33 +00:00
file = "base16-shell.plugin.zsh";
2023-02-11 01:25:49 +00:00
}
];
};
}