nixos-config/apps/zsh.nix

34 lines
853 B
Nix
Raw Normal View History

2025-08-21 11:21:15 +02:00
{ config, pkgs, ... }:
{
2025-08-31 12:03:52 +02:00
programs.dircolors.enableZshIntegration = true ;
programs.zsh = {
autosuggestion.enable = true ;
dirHashes = {
dl = "$HOME/Téléchargements" ;
nix = "$HOME/nixos-config" ;
};
enable = true ;
enableCompletion = true ;
history = {
append = true ;
extended = true ;
findNoDups = true ;
ignoreAllDups = true ;
ignoreSpace = true ;
ignorePatterns = [ "rm *" "cd *" "ls *" "df *" "du *" "fastfetch" "tree" "pwd" "upd" ] ;
saveNoDups = false ;
2025-08-21 11:21:15 +02:00
};
2025-08-31 12:03:52 +02:00
shellAliases = {
h = "history" ;
upd = "sudo nixos-rebuild switch --flake $HOME/nixos-config#pennsardin; source ~/.zshrc" ;
};
shellGlobalAliases = {
G = "| grep";
M = "| more";
2025-08-21 11:21:15 +02:00
};
2025-08-31 12:03:52 +02:00
syntaxHighlighting.enable = true ;
};
2025-08-21 11:21:15 +02:00
}
2025-08-31 12:03:52 +02:00
# vim: set ts=2 sw=2 sts=2 et :