nixos/user/zsh/default.nix
2024-03-18 15:54:04 +01:00

33 lines
794 B
Nix

{ user, pkgs, ... }: {
home.packages = with pkgs; [ fd ];
programs.zsh = {
enable = true;
autocd = false;
enableAutosuggestions = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
shellAliases = {
nrebuild = "sudo nixos-rebuild switch --flake /home/${user}/git/nixos";
dresden = "/home/mbeno/.ssh/dresden.sh";
d = "dresden";
};
initExtra = ''
bindkey -v
bindkey '^R' history-incremental-search-backward
# Prompt stuff
autoload -Uz promptinit
promptinit
prompt agnoster
'';
zplug = {
enable = true;
plugins = [
({ name = "plugins/git"; tags = [ "from:oh-my-zsh" ]; })
({ name = "modules/prompt"; tags = [ "from:prezto" ]; })
];
};
};
}