From 8909b2bfa3c19a23f6a6422084256ba1b4f9da33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Thu, 20 Jun 2024 20:43:54 +0200 Subject: [PATCH] atuin: Added --- hm/shell/atuin.nix | 19 +++++++++++++++++++ hm/shell/default.nix | 4 +++- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 hm/shell/atuin.nix diff --git a/hm/shell/atuin.nix b/hm/shell/atuin.nix new file mode 100644 index 0000000..7d8b5c6 --- /dev/null +++ b/hm/shell/atuin.nix @@ -0,0 +1,19 @@ +{ pkgs, lib, config, ... }: +{ + config = { + programs.atuin = { + enable = true; + enableBashIntegration = true; + enableZshIntegration = true; + settings = { + auto_sync = true; + sync_frequency = "5m"; + sync_address = "https://atuin.frogeye.fr"; + ctrl_n_shortcuts = true; # Cranberry uses Alt for i3 + }; + flags = [ + "--disable-up-arrow" + ]; + }; + }; +} diff --git a/hm/shell/default.nix b/hm/shell/default.nix index d9f53ad..dffeba1 100644 --- a/hm/shell/default.nix +++ b/hm/shell/default.nix @@ -14,7 +14,6 @@ in historySize = 100000; historyFile = "${config.xdg.stateHome}/shell_history"; historyFileSize = 100000; - # TODO Check out Atuin historyControl = [ "erasedups" "ignoredups" "ignorespace" ]; }; zsh = { @@ -35,4 +34,7 @@ in }; }; }; + imports = [ + ./atuin.nix + ]; }