aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-scripts/src/database.rs
diff options
context:
space:
mode:
authorLucas Trzesniewski <lucas.trzesniewski@gmail.com>2025-12-22 23:22:06 +0100
committerGitHub <noreply@github.com>2025-12-22 22:22:06 +0000
commit8a010fed33ce19a9ddc589196c73c07ba7ba88e7 (patch)
treef3c2fb9f44f6d148527483de600f31d56b493dac /crates/atuin-scripts/src/database.rs
parentfeat: allow disabling sync v1 (#3030) (diff)
downloadatuin-8a010fed33ce19a9ddc589196c73c07ba7ba88e7.zip
fix(powershell): run `atuin history end` in the background (#3034)
This runs `atuin history end` in the background, since it could delay the next prompt when syncing. Sorry I didn't realize this command could be slow (I currently don't use sync). I went for the .NET [`Process` class](https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.process), which is not pretty, but the other solutions I thought about all had their own issues (`Start-Process` needs a file to redirect the output so you can't just ignore it, `Start-Job` creates job objects that will linger, `&` does the same but doesn't work on PS 5.1, ...). I'm surprised I couldn't find a nice way to do the equivalent of `command & >/dev/null` in PowerShell. 😕 This replaces #3033 ## Checks - [x] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [x] I have checked that there are no existing pull requests for the same thing
Diffstat (limited to 'crates/atuin-scripts/src/database.rs')
0 files changed, 0 insertions, 0 deletions