dotfiles/modules/home-manager/zsh.nix

52 lines
1 KiB
Nix

{...}: {
programs.eza.enable = true;
programs.zsh = {
enable = true;
shellAliases = {
ll = "exa --icons -l";
l = "exa --icons -la";
ls = "exa --icons";
update = "sudo nixos-rebuild switch";
clear = "clear && fastfetch";
sl = "sl | lolcat";
cds = "cd \"$HOME/Nextcloud/Obsidian/FH/2. Semester/\"";
mux = "tmuxinator";
cat = "bat";
cd = "z";
};
initContent = ''
bindkey -s ^f "mux-sessionizer\n"
fastfetch
eval "$(zoxide init zsh)"
'';
history = {
size = 10000;
append = true;
};
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
oh-my-zsh = {
enable = true;
plugins = [
"aliases"
"bgnotify"
"colored-man-pages"
"colorize"
"command-not-found"
"docker"
"docker-compose"
"gh"
"git"
"git-auto-fetch"
"golang"
"pass"
"safe-paste"
"tmuxinator"
];
theme = "strug";
};
};
}