diff options
Diffstat (limited to 'atuin-client')
| -rw-r--r-- | atuin-client/config.toml | 3 | ||||
| -rw-r--r-- | atuin-client/src/settings.rs | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/atuin-client/config.toml b/atuin-client/config.toml index d18d9783..9a094f88 100644 --- a/atuin-client/config.toml +++ b/atuin-client/config.toml @@ -84,6 +84,9 @@ ## alt-0 .. alt-9 # ctrl_n_shortcuts = false +## default history list format - can also be specified with the --format arg +# history_format = "{time}\t{command}\t{duration}" + ## 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. diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs index 122b8d57..de6b10a4 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -277,6 +277,7 @@ pub struct Settings { pub word_jump_mode: WordJumpMode, pub word_chars: String, pub scroll_context_lines: usize, + pub history_format: String, #[serde(with = "serde_regex", default = "RegexSet::empty")] pub history_filter: RegexSet, @@ -480,6 +481,7 @@ impl Settings { let session_path = data_dir.join("session"); Ok(Config::builder() + .set_default("history_format", "{time}\t{command}\t{duration}")? .set_default("db_path", db_path.to_str())? .set_default("record_store_path", record_store_path.to_str())? .set_default("key_path", key_path.to_str())? |
