2021-04-13 20:14:07 +02:00
|
|
|
## where to store your database, default is your system data directory
|
2023-07-09 00:46:12 +02:00
|
|
|
## linux/mac: ~/.local/share/atuin/history.db
|
|
|
|
## windows: %USERPROFILE%/.local/share/atuin/history.db
|
2021-04-13 20:14:07 +02:00
|
|
|
# db_path = "~/.history.db"
|
|
|
|
|
|
|
|
## where to store your encryption key, default is your system data directory
|
2023-07-09 00:46:12 +02:00
|
|
|
## linux/mac: ~/.local/share/atuin/key
|
|
|
|
## windows: %USERPROFILE%/.local/share/atuin/key
|
2021-04-13 20:14:07 +02:00
|
|
|
# key_path = "~/.key"
|
|
|
|
|
|
|
|
## where to store your auth session token, default is your system data directory
|
2023-07-09 00:46:12 +02:00
|
|
|
## linux/mac: ~/.local/share/atuin/session
|
|
|
|
## windows: %USERPROFILE%/.local/share/atuin/session
|
|
|
|
# session_path = "~/.session"
|
2021-04-13 20:14:07 +02:00
|
|
|
|
|
|
|
## date format used, either "us" or "uk"
|
2023-04-05 10:32:26 +02:00
|
|
|
# dialect = "us"
|
2021-04-13 20:14:07 +02:00
|
|
|
|
2024-02-06 16:34:03 +01:00
|
|
|
## default timezone to use when displaying time
|
|
|
|
## either "l", "local" to use the system's current local timezone, or an offset
|
|
|
|
## from UTC in the format of "<+|->H[H][:M[M][:S[S]]]"
|
|
|
|
## for example: "+9", "-05", "+03:30", "-01:23:45", etc.
|
|
|
|
# timezone = "local"
|
|
|
|
|
2021-04-13 20:14:07 +02:00
|
|
|
## enable or disable automatic sync
|
|
|
|
# auto_sync = true
|
|
|
|
|
2022-10-14 11:59:21 +02:00
|
|
|
## enable or disable automatic update checks
|
|
|
|
# update_check = true
|
|
|
|
|
2021-04-13 20:14:07 +02:00
|
|
|
## address of the sync server
|
|
|
|
# sync_address = "https://api.atuin.sh"
|
2021-05-10 22:28:07 +02:00
|
|
|
|
2023-04-05 10:32:26 +02:00
|
|
|
## 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
|
2023-10-12 23:13:50 +02:00
|
|
|
# sync_frequency = "10m"
|
2023-04-05 10:32:26 +02:00
|
|
|
|
2021-05-10 22:28:07 +02:00
|
|
|
## which search mode to use
|
2023-04-05 10:32:26 +02:00
|
|
|
## possible values: prefix, fulltext, fuzzy, skim
|
|
|
|
# search_mode = "fuzzy"
|
|
|
|
|
|
|
|
## which filter mode to use
|
|
|
|
## possible values: global, host, session, directory
|
|
|
|
# filter_mode = "global"
|
|
|
|
|
2023-08-10 00:06:27 +02:00
|
|
|
## With workspace filtering enabled, Atuin will filter for commands executed
|
2023-12-11 21:16:11 +01:00
|
|
|
## in any directory within a git repository tree (default: false)
|
2023-08-10 00:06:27 +02:00
|
|
|
# workspaces = false
|
|
|
|
|
2023-04-05 10:32:26 +02:00
|
|
|
## 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"
|
2023-05-25 00:00:01 +02:00
|
|
|
# filter_mode_shell_up_key_binding = "global"
|
2022-10-05 14:14:56 +02:00
|
|
|
|
2023-09-17 20:30:13 +02:00
|
|
|
## 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"
|
|
|
|
|
2022-10-05 14:14:56 +02:00
|
|
|
## which style to use
|
|
|
|
## possible values: auto, full, compact
|
2023-04-05 10:32:26 +02:00
|
|
|
# style = "auto"
|
|
|
|
|
|
|
|
## the maximum number of lines the interface should take up
|
|
|
|
## set it to 0 to always go full screen
|
|
|
|
# inline_height = 0
|
|
|
|
|
2023-10-26 19:32:00 +02:00
|
|
|
## Invert the UI - put the search bar at the top , Default to `false`
|
2023-09-14 23:04:13 +02:00
|
|
|
# invert = false
|
|
|
|
|
2023-04-05 10:32:26 +02:00
|
|
|
## enable or disable showing a preview of the selected command
|
|
|
|
## useful when the command is longer than the terminal width and is cut off
|
2024-05-01 11:51:22 +02:00
|
|
|
# show_preview = true
|
2024-04-18 17:16:54 +02:00
|
|
|
|
2022-11-06 08:34:14 +01:00
|
|
|
## what to do when the escape key is pressed when searching
|
|
|
|
## possible values: return-original, return-query
|
|
|
|
# exit_mode = "return-original"
|
2023-02-14 08:14:05 +01:00
|
|
|
|
2023-03-05 19:49:09 +01:00
|
|
|
## 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
|
|
|
|
|
2023-07-27 10:10:40 +02:00
|
|
|
## use ctrl instead of alt as the shortcut modifier key for numerical UI shortcuts
|
|
|
|
## alt-0 .. alt-9
|
|
|
|
# ctrl_n_shortcuts = false
|
|
|
|
|
2024-01-29 11:58:20 +01:00
|
|
|
## default history list format - can also be specified with the --format arg
|
|
|
|
# history_format = "{time}\t{command}\t{duration}"
|
|
|
|
|
2023-02-14 08:14:05 +01:00
|
|
|
## 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",
|
2024-02-26 15:58:22 +01:00
|
|
|
# "^innocuous-cmd .*--secret=.+",
|
2023-04-05 10:32:26 +02:00
|
|
|
# ]
|
2023-05-02 04:55:54 +02:00
|
|
|
|
|
|
|
## 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
|
2023-05-25 00:00:01 +02:00
|
|
|
## start with ^ or end with $, they'll match anywhere in CWD.
|
2023-05-02 04:55:54 +02:00
|
|
|
## For details on the supported regular expression syntax, see
|
|
|
|
## https://docs.rs/regex/latest/regex/#syntax
|
|
|
|
# cwd_filter = [
|
2024-02-26 15:58:22 +01:00
|
|
|
# "^/very/secret/area",
|
2023-05-02 04:55:54 +02:00
|
|
|
# ]
|
2023-10-12 23:13:50 +02:00
|
|
|
|
|
|
|
## Configure the maximum height of the preview to show.
|
|
|
|
## Useful when you have long scripts in your history that you want to distinguish
|
|
|
|
## by more than the first few lines.
|
|
|
|
# max_preview_height = 4
|
|
|
|
|
|
|
|
## Configure whether or not to show the help row, which includes the current Atuin
|
|
|
|
## version (and whether an update is available), a keymap hint, and the total
|
|
|
|
## amount of commands in your history.
|
|
|
|
# show_help = true
|
|
|
|
|
2024-03-01 15:57:18 +01:00
|
|
|
## Configure whether or not to show tabs for search and inspect
|
|
|
|
# show_tabs = true
|
|
|
|
|
2023-10-12 23:13:50 +02:00
|
|
|
## Defaults to true. This matches history against a set of default regex, and will not save it if we get a match. Defaults include
|
|
|
|
## 1. AWS key id
|
|
|
|
## 2. Github pat (old and new)
|
|
|
|
## 3. Slack oauth tokens (bot, user)
|
|
|
|
## 4. Slack webhooks
|
|
|
|
## 5. Stripe live/test keys
|
|
|
|
# secrets_filter = true
|
2023-10-20 08:16:54 +02:00
|
|
|
|
|
|
|
## Defaults to true. If enabled, upon hitting enter Atuin will immediately execute the command. Press tab to return to the shell and edit.
|
|
|
|
# This applies for new installs. Old installs will keep the old behaviour unless configured otherwise.
|
|
|
|
enter_accept = true
|
2023-11-23 10:59:56 +01:00
|
|
|
|
2024-01-16 14:35:10 +01:00
|
|
|
## Defaults to "emacs". This specifies the keymap on the startup of `atuin
|
|
|
|
## search`. If this is set to "auto", the startup keymap mode in the Atuin
|
|
|
|
## search is automatically selected based on the shell's keymap where the
|
|
|
|
## keybinding is defined. If this is set to "emacs", "vim-insert", or
|
|
|
|
## "vim-normal", the startup keymap mode in the Atuin search is forced to be
|
|
|
|
## the specified one.
|
|
|
|
# keymap_mode = "auto"
|
2024-01-13 18:15:49 +01:00
|
|
|
|
2024-01-22 11:56:44 +01:00
|
|
|
## Cursor style in each keymap mode. If specified, the cursor style is changed
|
|
|
|
## in entering the cursor shape. Available values are "default" and
|
2024-02-20 13:54:48 +01:00
|
|
|
## "{blink,steady}-{block,underline,bar}".
|
2024-01-22 11:56:44 +01:00
|
|
|
# keymap_cursor = { emacs = "blink-block", vim_insert = "blink-block", vim_normal = "steady-block" }
|
|
|
|
|
2024-01-19 16:45:42 +01:00
|
|
|
# network_connect_timeout = 5
|
|
|
|
# network_timeout = 5
|
|
|
|
|
|
|
|
## Timeout (in seconds) for acquiring a local database connection (sqlite)
|
|
|
|
# local_timeout = 5
|
|
|
|
|
2024-02-12 10:26:29 +01:00
|
|
|
## Set this to true and Atuin will minimize motion in the UI - timers will not update live, etc.
|
2024-02-01 16:17:29 +01:00
|
|
|
## Alternatively, set env NO_MOTION=true
|
|
|
|
# prefers_reduced_motion = false
|
|
|
|
|
2024-02-12 10:26:29 +01:00
|
|
|
[stats]
|
|
|
|
## Set commands where we should consider the subcommand for statistics. Eg, kubectl get vs just kubectl
|
2024-02-26 15:58:22 +01:00
|
|
|
# common_subcommands = [
|
2024-02-27 14:27:39 +01:00
|
|
|
# "apt",
|
2024-02-26 15:58:22 +01:00
|
|
|
# "cargo",
|
2024-02-27 14:27:39 +01:00
|
|
|
# "composer",
|
|
|
|
# "dnf",
|
|
|
|
# "docker",
|
2024-02-26 15:58:22 +01:00
|
|
|
# "git",
|
|
|
|
# "go",
|
2024-02-27 14:27:39 +01:00
|
|
|
# "ip",
|
2024-02-26 15:58:22 +01:00
|
|
|
# "kubectl",
|
|
|
|
# "nix",
|
2024-02-27 14:27:39 +01:00
|
|
|
# "nmcli",
|
|
|
|
# "npm",
|
|
|
|
# "pecl",
|
2024-02-26 15:58:22 +01:00
|
|
|
# "pnpm",
|
2024-02-27 14:27:39 +01:00
|
|
|
# "podman",
|
|
|
|
# "port",
|
|
|
|
# "systemctl",
|
|
|
|
# "tmux",
|
2024-02-26 15:58:22 +01:00
|
|
|
# "yarn",
|
|
|
|
# ]
|
2024-02-12 10:26:29 +01:00
|
|
|
|
|
|
|
## Set commands that should be totally stripped and ignored from stats
|
2024-02-26 15:58:22 +01:00
|
|
|
# common_prefix = ["sudo"]
|
2024-02-15 19:52:19 +01:00
|
|
|
|
|
|
|
## Set commands that will be completely ignored from stats
|
2024-02-26 15:58:22 +01:00
|
|
|
# ignored_commands = [
|
|
|
|
# "cd",
|
|
|
|
# "ls",
|
|
|
|
# "vi"
|
|
|
|
# ]
|
2024-02-21 09:25:55 +01:00
|
|
|
|
|
|
|
[keys]
|
|
|
|
# Defaults to true. If disabled, using the up/down key won't exit the TUI when scrolled past the first/last entry.
|
|
|
|
# scroll_exits = false
|
2024-04-02 15:41:13 +02:00
|
|
|
|
|
|
|
[sync]
|
|
|
|
# Enable sync v2 by default
|
|
|
|
# This ensures that sync v2 is enabled for new installs only
|
|
|
|
# In a later release it will become the default across the board
|
|
|
|
records = true
|
2024-05-01 11:51:22 +02:00
|
|
|
|
|
|
|
[preview]
|
|
|
|
## which preview strategy to use to calculate the preview height (respects max_preview_height).
|
|
|
|
## possible values: auto, static
|
|
|
|
## auto: length of the selected command.
|
|
|
|
## static: length of the longest command stored in the history.
|
|
|
|
# strategy = auto
|