dotfiles/modules/programs/zsh.nix

56 lines
1 KiB
Nix

{ lib, pkgs, ... }:
{
programs.zsh = {
enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
prezto = {
prompt = {
theme = "powerlevel10k";
};
enable = true;
};
autosuggestion = {
#highlight = "fg=#ff00ff,bg=cyan,bold,underline";
#strategy = [ "completion" "history" ];
enable = true;
};
plugins = [
{
name = "fzf-tab";
src = "${pkgs.zsh-fzf-tab}/share/fzf-tab";
}
];
history = {
append = true;
expireDuplicatesFirst = true;
};
localVariables = {
PURE_GIT_PULL = "0";
TELEPORT_ADD_KEYS_TO_AGENT = "no";
K9S_SKIN = "transparent";
};
initContent = lib.mkOrder 500 ''
source ~/.p10k.zsh
echo "Hey there raccoon! 🦝🍁"
'';
shellAliases = {
ls = "eza";
cd = "z";
cat = "bat";
k = "kubectl";
m = "micro";
h = "helm";
tp = "teleport";
t = "talosctl";
};
};
}