[Bug]: atuin + starship + zsh + accept-line override is clearing previous command? #2353
Open
1 task done
Labels
bug
Something isn't working
What did you expect to happen?
I have overridden
zle
'saccept-line
command to reset the prompt. My goal is to have the time in the current prompt reset on Return to be the time that the command was executed. Then the command finishes, and the new prompt shows the time the previous command ended, until it gets reset upon submitting the next command. Here's what I've added to my.zshrc
:This works correctly when I use Return to enter a new command. It also works if I turn off
atuin
and just use the up arrow to navigate the command history. Or if I useatuin
to find a previous command, recall it with Tab, and then exectue it with Return.What happened?
When I instead use
atuin
to recall a previous command and execute it using Return directly from the list, thisaccept-line
override is causing the output of the previous command to be entirely cleared. The prompt does get reset (and the time is updated), then the output of the current command is shown, and then the next prompt is shown. But it's kind of a dealbreaker that the previous command's output disappears.This doesn't happen if I disable the
accept-line
override, so that's clearly the problem. Of course, it also works fine if I turn offatuin
. Am I missing azle
command here to make this rather unique use case work successfully withatuin
?Atuin doctor output
Code of Conduct
The text was updated successfully, but these errors were encountered: