From a008f3a6d6ff163e828d011c6aeeef5b26443448 Mon Sep 17 00:00:00 2001 From: Alexander Wainwright Date: Sat, 21 Jun 2025 13:24:57 +1000 Subject: [PATCH] Add atuin config --- alex/atuin/config.toml | 101 +++++++++++++++++++++++++++++++++++++++++ alex/home.nix | 6 +-- 2 files changed, 104 insertions(+), 3 deletions(-) create mode 100644 alex/atuin/config.toml diff --git a/alex/atuin/config.toml b/alex/atuin/config.toml new file mode 100644 index 0000000..a789a2e --- /dev/null +++ b/alex/atuin/config.toml @@ -0,0 +1,101 @@ +## where to store your encryption key, default is your system data directory +## linux/mac: ~/.local/share/atuin/key +## windows: %USERPROFILE%/.local/share/atuin/key +# key_path = "~/.key" + +## where to store your auth session token, default is your system data directory +## linux/mac: ~/.local/share/atuin/session +## windows: %USERPROFILE%/.local/share/atuin/session +# session_path = "~/.session" + +enter_accept = true + +## date format used, either "us" or "uk" +dialect = "uk" + +## enable or disable automatic sync +# auto_sync = true + +## enable or disable automatic update checks +# update_check = true + +## address of the sync server +sync_address = "http://192.168.1.63:8888" + +## how often to sync history. note that this is only triggered when a command +## is ran, so sync intervals may well be longer +## set it to 0 to sync after every command +sync_frequency = "10m" + +## which search mode to use +## possible values: prefix, fulltext, fuzzy, skim +# search_mode = "fuzzy" + +## which filter mode to use +## possible values: global, host, session, directory +# filter_mode = "global" + +## With workspace filtering enabled, Atuin will filter for commands executed +## in any directory within a git repositiry tree (default: false) +# workspaces = false + +## which filter mode to use when atuin is invoked from a shell up-key binding +## the accepted values are identical to those of "filter_mode" +## leave unspecified to use same mode set in "filter_mode" +filter_mode_shell_up_key_binding = "session" + +## which search mode to use when atuin is invoked from a shell up-key binding +## the accepted values are identical to those of "search_mode" +## leave unspecified to use same mode set in "search_mode" +# search_mode_shell_up_key_binding = "fuzzy" + +## which style to use +## possible values: auto, full, compact +style = "auto" + +## the maximum number of lines the interface should take up +## set it to 0 to always go full screen +# inline_height = 0 + +##Invert the UI - put the search bar at the top , Default to `false` +# invert = false + +## enable or disable showing a preview of the selected command +## useful when the command is longer than the terminal width and is cut off +show_preview = true + +## what to do when the escape key is pressed when searching +## possible values: return-original, return-query +# exit_mode = "return-original" + +## possible values: emacs, subl +# word_jump_mode = "emacs" + +## characters that count as a part of a word +# word_chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789" + +## number of context lines to show when scrolling by pages +# scroll_context_lines = 1 + +## use ctrl instead of alt as the shortcut modifier key for numerical UI shortcuts +## alt-0 .. alt-9 +# ctrl_n_shortcuts = false + +## prevent commands matching any of these regexes from being written to history. +## Note that these regular expressions are unanchored, i.e. if they don't start +## with ^ or end with $, they'll match anywhere in the command. +## For details on the supported regular expression syntax, see +## https://docs.rs/regex/latest/regex/#syntax +# history_filter = [ +# "^secret-cmd", +# "^innocuous-cmd .*--secret=.+" +# ] + +## prevent commands run with cwd matching any of these regexes from being written +## to history. Note that these regular expressions are unanchored, i.e. if they don't +## start with ^ or end with $, they'll match anywhere in CWD. +## For details on the supported regular expression syntax, see +## https://docs.rs/regex/latest/regex/#syntax +# cwd_filter = [ +# "^/very/secret/area" +# ] diff --git a/alex/home.nix b/alex/home.nix index f4b847c..615b365 100644 --- a/alex/home.nix +++ b/alex/home.nix @@ -31,9 +31,11 @@ tm = "tmux attach || tmux"; }; - home.file.".wezterm.lua".source = ./wezterm.lua; + home.file.".config/atuin/config.toml".source = ./atuin/config.toml; + home.file.".config/nvim/init.lua".source = ./nvim/init.lua; home.file.".config/tmux/tmux.conf".source = ./tmux/tmux.conf; home.file.".config/tmux/tmux.conf.local".source = ./tmux/tmux.conf.local; + home.file.".wezterm.lua".source = ./wezterm.lua; # Packages that should be installed to the user profile. home.packages = with pkgs; [ @@ -196,8 +198,6 @@ ''; }; - home.file.".config/nvim/init.lua".source = ./nvim/init.lua; - programs.neovim = { enable = true; defaultEditor = true;