nixos/user/zsh/default.nix

34 lines
834 B
Nix
Raw Normal View History

2024-03-18 11:58:34 +00:00
{ user, pkgs, ... }: {
home.packages = with pkgs; [ fd ];
programs.zsh = {
enable = true;
autocd = false;
enableAutosuggestions = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
shellAliases = {
2024-03-18 12:01:12 +00:00
nrebuild = "sudo nixos-rebuild switch --flake /home/${user}/git/nixos";
2024-03-18 14:50:29 +00:00
dresden = "/home/mbeno/.ssh/dresden.sh";
d = "dresden";
2024-03-18 11:58:34 +00:00
};
2024-04-19 10:31:32 +00:00
2024-03-18 11:58:34 +00:00
initExtra = ''
bindkey -v
bindkey '^R' history-incremental-search-backward
# Prompt stuff
autoload -Uz promptinit
promptinit
2024-03-18 13:09:49 +00:00
prompt agnoster
2024-04-19 10:31:32 +00:00
source ~/.config/source/tsd-artifacts
2024-03-18 11:58:34 +00:00
'';
zplug = {
enable = true;
plugins = [
({ name = "plugins/git"; tags = [ "from:oh-my-zsh" ]; })
({ name = "modules/prompt"; tags = [ "from:prezto" ]; })
];
};
};
}