Atuin: Difference between revisions

Xiutik (talk | contribs)
No edit summary
m Fix path to Atuin login session files
 
(One intermediate revision by one other user not shown)
Line 20: Line 20:
};
};
</nowiki>}}
</nowiki>}}
=== Disable up-arrow / Ctrl+R keybindings ===
Key bindings are not part of Atuin settings and need to be passed as flags instead.{{file|~/.config/home-manager/home.nix|nix|<nowiki>
{ pkgs, ... }: {
  programs.atuin = {
    enable = true;
    # ...
    flags = [ "--disable-up-arrow" ]; # or --disable-ctrl-r
  };
};
</nowiki>|name=~/.config/home-manager/home.nix|lang=nix}}


=== Enable synchronization with atuin.sh ===
=== Enable synchronization with atuin.sh ===
Line 40: Line 51:
==== Declaratively ====
==== Declaratively ====


You can manage your atuin session declaratively by setting the <code>session_path</code> and <code>key_path</code> options to files containing a session token and a key. You can obtain these two files by registering as described above and copying them from <code>~/.local/share/key</code> and <code>~/.local/share/session</code>. The example below uses agenix
You can manage your atuin session declaratively by setting the <code>session_path</code> and <code>key_path</code> options to files containing a session token and a key. You can obtain these two files by registering as described above and copying them from <code>~/.local/share/atuin/key</code> and <code>~/.local/share/atuin/session</code>. The example below uses agenix


{{note|Both the session and key file must not have a trailing newline or you get <code>Error: failed to parse header value</code>. Several common editors (e.g. Vim) will automatically add a newline on save.}}
{{note|Both the session and key file must not have a trailing newline or you get <code>Error: failed to parse header value</code>. Several common editors (e.g. Vim) will automatically add a newline on save.}}
Line 60: Line 71:
=== zsh autosuggestions ===
=== zsh autosuggestions ===


If zsh autosuggestions is enabled, atuin automatically adds itself as the first autosuggestion strategy; See [https://docs.atuin.sh/integrations/#zsh-autosuggestions atuin docs]
If zsh autosuggestions is enabled, atuin automatically adds itself as the first autosuggestion strategy; see [https://docs.atuin.sh/integrations/#zsh-autosuggestions atuin docs]


{{file|~/.config/home-manager/home.nix|nix|<nowiki>
{{file|~/.config/home-manager/home.nix|nix|<nowiki>