Watch
0
1
Fork
You've already forked nixos-configuration
0
nixos-configuration/homeConfigurations/muede/zsh.nix
2026-11-09 17:15:48 +01:00

34 lines
944 B
Nix

{ config, pkgs, ... }:
{
config.programs.zsh = {
initContent = ''
export PATH=$PATH:$HOME/.cargo/bin
bindkey "^[[1;5C" forward-word
bindkey "^[[1;5D" backward-word
# quick haiku: no CLAUDE.md, no skills/hooks/settings, minimal system prompt
llm() {
CLAUDE_CODE_DISABLE_CLAUDE_MDS=1 claude --model haiku \
--setting-sources "" --disable-slash-commands --tools "" \
--system-prompt "concise plain text answer pls." -p "$@"
}
'';
enableCompletion = true;
shellAliases = {
s = "nix-shell -p";
my-direnvallow = "echo \"use nix\" > .envrc && direnv allow";
my-ip4 = "ip addr show | grep 192";
deadnix = "nix run github:astro/deadnix -- ";
statix = "nix run github:oppiliappan/statix -- ";
};
history = {
size = 10000;
path = "${config.xdg.dataHome}/zsh/history";
expireDuplicatesFirst = true;
};
};
}