nix-conf/home-manager/zsh.nix
2025-08-25 23:50:16 -03:00

42 lines
775 B
Nix

{ config
, lib
, pkgs
, ...
}:
{
config = {
home.file."scripts/lsgpu.sh" = {
source = ./scripts/lsgpu.sh;
executable = true;
};
programs.zsh = {
enable = true;
autosuggestion.enable = true;
syntaxHighlighting.enable = true;
initContent = ''
eval "$(direnv hook zsh)"
export GPG_TTY=$(tty)
'';
shellAliases = {
"vi" = "nvim";
"vim" = "nvim";
"ll" = "ls -l";
"lsgpu" = "$HOME/scripts/lsgpu.sh";
"gedit" = "gnome-text-editor";
"pbcopy" = "wl-copy";
"pbpaste" = "wl-paste";
};
oh-my-zsh = {
enable = true;
theme = "bureau";
plugins = [
"git"
"history"
];
};
};
};
}