Fix atuin config (default values overwrote when adopting)

This commit is contained in:
JLP 2025-05-19 09:17:46 -04:00
parent 3697441569
commit 9aedc6562c
Signed by: jleechpe
GPG key ID: 414E00D1FF7519DC
2 changed files with 51 additions and 40 deletions

View file

@ -1,6 +1,6 @@
* Dotfile management
* TODO Sync Status [0%]
* TODO Sync Status [3%]
Planned process is:
1. Pull current config from ~jlpframework~ and ~dresden~ (hopefully mostly in sync)
@ -15,10 +15,16 @@ Statuses:
*** DONE Framework
*** CHECK Dresden
*** CHECK Up-to-date
** TODO atuin [1/3]
** DONE atuin [3/3]
*** DONE Framework
*** CHECK Dresden
*** CHECK Up-to-date
*** DONE Dresden
*** DONE Up-to-date
:LOGBOOK:
- Note taken on [2025-05-19 Mon 09:20] \\
Used latest default config.toml and updated with my existing values while
reviewing changes to see if anything was worth taking
:END:
** TODO autostart [1/3]
*** DONE Framework
*** CHECK Dresden

View file

@ -29,7 +29,7 @@
# update_check = true
## address of the sync server
# sync_address = "https://api.atuin.sh"
sync_address = "https://atuin.leechpepin.com"
## how often to sync history. note that this is only triggered when a command
## is ran, so sync intervals may well be longer
@ -51,12 +51,12 @@
## To use workspace mode by default when available, set this to true and
## set filter_mode to "workspace" or leave it unspecified and
## set search.filters to include "workspace" before other filter modes.
# workspaces = false
workspaces = true
## 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 = "global"
filter_mode_shell_up_key_binding = "directory"
## 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"
@ -65,7 +65,7 @@
## which style to use
## possible values: auto, full, compact
# style = "auto"
style = "compact"
## the maximum number of lines the interface should take up
## set it to 0 to always go full screen
@ -76,7 +76,7 @@
## 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
show_preview = true
## what to do when the escape key is pressed when searching
## possible values: return-original, return-query
@ -103,10 +103,11 @@
## 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 = [
history_filter = [
"^math .*"
# "^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
@ -143,7 +144,7 @@
## 3. Slack oauth tokens (bot, user)
## 4. Slack webhooks
## 5. Stripe live/test keys
# secrets_filter = true
secrets_filter = true
## 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.
@ -174,31 +175,35 @@ enter_accept = true
[stats]
## Set commands where we should consider the subcommand for statistics. Eg, kubectl get vs just kubectl
# common_subcommands = [
# "apt",
# "cargo",
# "composer",
# "dnf",
# "docker",
# "git",
# "go",
# "ip",
# "jj",
# "kubectl",
# "nix",
# "nmcli",
# "npm",
# "pecl",
# "pnpm",
# "podman",
# "port",
# "systemctl",
# "tmux",
# "yarn",
# ]
common_subcommands = [
"apt",
"cargo",
"composer",
"dnf",
"docker",
"git",
"go",
"ip",
"jj",
"kubectl",
"nix",
"nmcli",
"npm",
"pacman",
"pecl",
"pnpm",
"podman",
"port",
"systemctl",
"tmux",
"uv",
"wezterm",
"yarn",
"zellij",
]
## Set commands that should be totally stripped and ignored from stats
# common_prefix = ["sudo"]
common_prefix = ["sudo", "please"]
## Set commands that will be completely ignored from stats
# ignored_commands = [
@ -231,20 +236,20 @@ records = true
[daemon]
## Enables using the daemon to sync. Requires the daemon to be running in the background. Start it with `atuin daemon`
# enabled = false
enabled = false
## How often the daemon should sync in seconds
# sync_frequency = 300
sync_frequency = 60
## The path to the unix socket used by the daemon (on unix systems)
## linux/mac: ~/.local/share/atuin/atuin.sock
## windows: Not Supported
# socket_path = "~/.local/share/atuin/atuin.sock"
socket_path = "/run/user/1000/atuin.sock"
## Use systemd socket activation rather than opening the given path (the path must still be correct for the client)
## linux: false
## mac/windows: Not Supported
# systemd_socket = false
systemd_socket = false
## The port that should be used for TCP on non unix systems
# tcp_port = 8889