2024-02-27 21:20:00 +00:00
|
|
|
{ user, pkgs, ... }: {
|
2024-02-27 09:09:03 +00:00
|
|
|
home.packages = with pkgs; [ fd ];
|
|
|
|
programs.zsh = {
|
|
|
|
enable = true;
|
|
|
|
autocd = false;
|
|
|
|
enableAutosuggestions = true;
|
|
|
|
enableCompletion = true;
|
|
|
|
syntaxHighlighting.enable = true;
|
2024-02-27 20:59:29 +00:00
|
|
|
shellAliases = {
|
2024-03-02 20:16:23 +00:00
|
|
|
nrebuild = "sudo nixos-rebuild switch --flake /home/${user}/nixos";
|
2024-02-27 20:59:29 +00:00
|
|
|
};
|
|
|
|
initExtra = ''
|
|
|
|
bindkey -v
|
|
|
|
bindkey '^R' history-incremental-search-backward
|
2024-03-08 17:14:22 +00:00
|
|
|
|
|
|
|
# Prompt stuff
|
|
|
|
autoload -Uz promptinit
|
|
|
|
promptinit
|
|
|
|
prompt pure
|
2024-02-27 20:59:29 +00:00
|
|
|
'';
|
2024-03-08 17:14:22 +00:00
|
|
|
zplug = {
|
|
|
|
enable = true;
|
|
|
|
plugins = [
|
|
|
|
({ name = "plugins/git"; tags = [ "from:oh-my-zsh" ]; })
|
|
|
|
({ name = "modules/prompt"; tags = [ "from:prezto" ]; })
|
|
|
|
];
|
|
|
|
};
|
2024-02-27 09:09:03 +00:00
|
|
|
};
|
|
|
|
}
|