-
-
Notifications
You must be signed in to change notification settings - Fork 775
Description
What did you expect to happen?
In Bash, if you cut and past multiple commands to the command line, they will be executed in sequence. All commands in the sequence should be recorded in Atuin individually, i.e. as if they had been submitted individually.
What happened?
Frequently when problem solving you may encounter a series of commands necessary to resolve the problem. This commonly happens when consulting AI. AI may generate a list of commands needed to diagnose or correct a problem. Copying those commands is far safer and convenient than copying them individually and these commands are naturally separated with line breaks. For example:
#: mkdir -p ~/Icons/outlook
cd ~/Icons/outlook
wget https://raw.githubusercontent.com/microsoft/fluentui-system-icons/main/assets/Outlook/SVG/ic_fluent_mail_48_regular.svg -O outlook.svg
Later, when you hit up-arrow the mkdir -p ~/Icons/outlook command is listed in the history but the cd and the wget are not. This is problematic as often you want to repeat specific commands with some minor changes.
Also, edited commands using the system $EDITOR are not captured as well. I have vi mode enabled for bash command editing and when I enter visual mode (ESC v) the NVIM editor is invoked. The edited version of the command is executed but not recorded in the Atuin history.
Atuin doctor output
{
"atuin": {
"version": "18.11.0",
"commit": "63de4501a4a2c4af98e520689fa74cd314d7f643",
"sync": null,
"sqlite_version": "3.46.0"
},
"shell": {
"name": "bash",
"default": "bash",
"plugins": [
"atuin",
"bash-preexec"
],
"preexec": "bash-preexec"
},
"system": {
"os": "Zorin OS",
"arch": "x86_64",
"version": "18",
"disks": [
{
"name": "/dev/nvme0n1p2",
"filesystem": "ext4"
},
{
"name": "/dev/nvme0n1p1",
"filesystem": "vfat"
},
{
"name": "/dev/sda1",
"filesystem": "ext4"
},
{
"name": "pCloud.fs",
"filesystem": "fuse"
}
]
}
}Code of Conduct
- I agree to follow this project's Code of Conduct