I’ve got the problem, that atuin works (with sync), but new commands don’t get included in the database. Take a look at `yay -Syu’. The history has it:
$ history 5
516 2025-04-28 07:53:54 atuin sync -f
517 2025-04-28 07:54:47 yay -Syu
518 2025-04-28 07:54:54 clear
519 2025-04-28 07:54:55 yay -Syu
520 2025-04-28 07:55:05 history 5
Atuin fails when I search for “Syu” or “yay -Syu”:
$ atuin search "Syu"
[ble: exit 1]
$ atuin search "yay "
lists all my yay commands, but yay -Syu is not listed
The database is synced:
$ atuin sync -f
0/0 up/down to record store
Sync complete! 506 items in history database, force: true
Here’s the doctor (ble.sh is installed and works). The last_sync is strange:
$ atuin doctor
Atuin Doctor
Checking for diagnostics
[Shell] If you are using Bash, Atuin requires that either bash-preexec or ble.sh be installed. An older ble.sh may not be detected. so ignore this if you have it set up! Read more here: https://docs.atuin.sh/guide/installation/#bash
Please include the output below with any bug reports or issues
{
"atuin": {
"version": "18.5.0",
"sync": {
"cloud": true,
"records": true,
"auto_sync": true,
"last_sync": "1970-01-01 0:00:00.0 +00:00:00"
},
"sqlite_version": "3.46.0"
},
"shell": {
"name": "bash",
"default": "bash",
"plugins": [
"atuin"
],
"preexec": "none"
},
"system": {
"os": "Arch Linux",
"arch": "x86_64",
"version": "rolling",
"disks": [
{
"name": "/dev/nvme0n1p2",
"filesystem": "btrfs"
},
{
"name": "/dev/nvme0n1p2",
"filesystem": "btrfs"
},
{
"name": "/dev/nvme0n1p2",
"filesystem": "btrfs"
},
{
"name": "/dev/nvme0n1p2",
"filesystem": "btrfs"
},
{
"name": "/dev/nvme0n1p2",
"filesystem": "btrfs"
},
{
"name": "/dev/nvme0n1p1",
"filesystem": "vfat"
},
{
"name": "/dev/sdb1",
"filesystem": "exfat"
}
]
}
}
And the relevant part of my .bashrc.
$ cat .bashrc
# BLESH aktivieren, falls Shell interaktiv ist
[[ $- == *i* ]] && source /usr/share/blesh/ble.sh --noattach
...
# Atuin (verbesserte Shell-Verlaufssuche) initialisieren
eval "$(atuin init bash)"
# BLESH anhängen, wenn bereits geladen
[[ ! ${BLE_VERSION-} ]] || ble-attach