From 376532cd54a1741c907462b3ac45959cb9f65b61 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Wed, 26 Nov 2025 23:52:24 +0000 Subject: [PATCH 1/4] Fix name of two import subcommands --- src/content/docs/reference/import.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/reference/import.mdx b/src/content/docs/reference/import.mdx index de7a648..ba3bb41 100644 --- a/src/content/docs/reference/import.mdx +++ b/src/content/docs/reference/import.mdx @@ -74,7 +74,7 @@ environment variables present when each session was initiated, but this data is discarded by Atuin. Xonsh optionally stores the output of each command; if present this data is also ignored by Atuin. -## xonsh_sqlite +## xonsh-sqlite The Xonsh SQLite importer will read from the Xonsh SQLite history file. The history file's location is determined by the same process as the regular Xonsh importer, @@ -84,7 +84,7 @@ The Xonsh SQLite backend does not store environment variables, but like the JSON backend it can optionally store the output of each command. As with the JSON backend, if present this data will be ignored by Atuin. -## zsh_histdb +## zsh-hist-db This will read the Zsh histdb SQLite file from `$HISTDB_FILE` or `$HOME/.histdb/zsh-history.db`. From 302a72861395ad83c95c7cc66ab972409db3fd53 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Fri, 28 Nov 2025 13:56:15 +0000 Subject: [PATCH 2/4] Document the replxx and powershell history import subcommands --- src/content/docs/reference/import.mdx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/content/docs/reference/import.mdx b/src/content/docs/reference/import.mdx index ba3bb41..d930d11 100644 --- a/src/content/docs/reference/import.mdx +++ b/src/content/docs/reference/import.mdx @@ -55,6 +55,21 @@ This importer reads from Nushell's text history format, which is stored in `$XDG_CONFIG_HOME/nushell/history.txt` or `$HOME/.config/nushell/history.txt`. There is no way to set the filename otherwise. +## powershell + +This importer reads from +[PowerShell's history file](https://learn.microsoft.com/en-us/powershell/module/psreadline/about/about_psreadline#command-history). +On Windows, the file is located at +`$APPDATA\Microsoft\Windows\PowerShell\PSReadLine\ConsoleHost_history.txt`. +On other systems, it is located at +`$XDG_DATA_HOME/powershell/PSReadLine/ConsoleHost_history.txt` +or `$HOME/.local/share/powershell/PSReadLine/ConsoleHost_history.txt`. + +## replxx + +The [replxx](https://github.com/AmokHuginnsson/replxx) importer will read from +`$HISTFILE` or `$HOME/.histfile`. + ## resh The [RESH](https://github.com/curusarn/resh) importer will read from `$HISTFILE` or `$HOME/.resh_history.json`. From ff7a1ff77cf27a514d63d0ba65886ed908d21a9f Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Fri, 28 Nov 2025 13:59:25 +0000 Subject: [PATCH 3/4] Fix sorting of sections in the import page --- src/content/docs/reference/import.mdx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/content/docs/reference/import.mdx b/src/content/docs/reference/import.mdx index d930d11..c52db11 100644 --- a/src/content/docs/reference/import.mdx +++ b/src/content/docs/reference/import.mdx @@ -43,18 +43,18 @@ will be `{session}_history` in `$XDG_DATA_HOME/fish/` (or `$HOME/.local/share/fi Not all of the data in the fish history is preserved, some data about filenames used for each command are not used by Atuin, so it is discarded. -## nu-hist-db - -This importer reads from Nushell's SQLite history database, which is stored in -`$XDG_CONFIG_HOME/nushell/history.sqlite3` or `$HOME/.config/nushell/history.sqlite3`. -There is no way to set the filename otherwise. - ## nu This importer reads from Nushell's text history format, which is stored in `$XDG_CONFIG_HOME/nushell/history.txt` or `$HOME/.config/nushell/history.txt`. There is no way to set the filename otherwise. +## nu-hist-db + +This importer reads from Nushell's SQLite history database, which is stored in +`$XDG_CONFIG_HOME/nushell/history.sqlite3` or `$HOME/.config/nushell/history.sqlite3`. +There is no way to set the filename otherwise. + ## powershell This importer reads from @@ -99,12 +99,12 @@ The Xonsh SQLite backend does not store environment variables, but like the JSON backend it can optionally store the output of each command. As with the JSON backend, if present this data will be ignored by Atuin. -## zsh-hist-db - -This will read the Zsh histdb SQLite file from `$HISTDB_FILE` or -`$HOME/.histdb/zsh-history.db`. - ## zsh This will read the Zsh history from `$HISTFILE` or `$HOME/.zhistory` or `$HOME/.zsh_history` in either the simple or extended format. + +## zsh-hist-db + +This will read the Zsh histdb SQLite file from `$HISTDB_FILE` or +`$HOME/.histdb/zsh-history.db`. From 973f61963fc7c30a8dca4ea09663161c5bf1cd90 Mon Sep 17 00:00:00 2001 From: Waldir Pimenta Date: Fri, 28 Nov 2025 14:07:27 +0000 Subject: [PATCH 4/4] Normalize whitespace handling in import page --- src/content/docs/reference/import.mdx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/content/docs/reference/import.mdx b/src/content/docs/reference/import.mdx index c52db11..4670abc 100644 --- a/src/content/docs/reference/import.mdx +++ b/src/content/docs/reference/import.mdx @@ -45,13 +45,13 @@ for each command are not used by Atuin, so it is discarded. ## nu -This importer reads from Nushell's text history format, which is stored in +This importer reads from Nushell's text history format, which is stored in `$XDG_CONFIG_HOME/nushell/history.txt` or `$HOME/.config/nushell/history.txt`. There is no way to set the filename otherwise. ## nu-hist-db -This importer reads from Nushell's SQLite history database, which is stored in +This importer reads from Nushell's SQLite history database, which is stored in `$XDG_CONFIG_HOME/nushell/history.sqlite3` or `$HOME/.config/nushell/history.sqlite3`. There is no way to set the filename otherwise. @@ -72,7 +72,8 @@ The [replxx](https://github.com/AmokHuginnsson/replxx) importer will read from ## resh -The [RESH](https://github.com/curusarn/resh) importer will read from `$HISTFILE` or `$HOME/.resh_history.json`. +The [RESH](https://github.com/curusarn/resh) importer will read from `$HISTFILE` +or `$HOME/.resh_history.json`. ## xonsh