added atuin

This commit is contained in:
steven carpenter 2025-06-25 01:20:19 -04:00
parent ce3d8226a7
commit a911a95162
2 changed files with 31 additions and 19 deletions

View file

@ -44,6 +44,7 @@
bitwarden
gimp
vlc
atuin
# # Adds the 'hello' command to your environment. It prints a friendly
# # "Hello, world!" when run.
# pkgs.hello

View file

@ -1,26 +1,37 @@
{ pkgs, config, lib, ...}:
{ pkgs, config, lib, ... }:
{
options.speccon18.hm.zsh.enable = lib.mkEnableOption "enables specs zsh config";
config = lib.mkIf config.speccon18.hm.zsh.enable {
programs.zsh = {
enable = lib.mkDefault true;
dotDir = ".config/zsh";
history = {
path = "$ZDOTDIR/.zsh_history";
save = 10000000;
};
autosuggestion.enable = lib.mkDefault true;
enableCompletion = lib.mkDefault true;
syntaxHighlighting.enable = lib.mkDefault true;
shellAliases = {
ls = "eza -l";
lsa = "eza -al";
grep = "rg";
osrb = "sudo nixos-rebuild $1 --flake ~/code/nixos-config/#katana";
};
localVariables = {
EDITOR="hx";
};
enable = lib.mkDefault true;
dotDir = ".config/zsh";
history = {
path = "$ZDOTDIR/.zsh_history";
save = 10000000;
};
autosuggestion.enable = lib.mkDefault true;
enableCompletion = lib.mkDefault true;
syntaxHighlighting.enable = lib.mkDefault true;
shellAliases = {
ls = "eza -l";
lsa = "eza -al";
grep = "rg";
osrb = "sudo nixos-rebuild $1 --flake ~/code/nixos-config/#katana";
};
localVariables = {
EDITOR = "nvim";
};
# This adds the atuin init line to your Zsh config
initExtra = ''
eval "$(atuin init zsh)"
'';
};
};
}