feat: nushell auto import

This commit is contained in:
Conrad Ludgate 2021-09-13 07:30:03 +01:00
parent 3154566613
commit 72f2f59a11
No known key found for this signature in database
GPG Key ID: 3DD1A1DB3CB4BF63

View File

@ -60,6 +60,9 @@ impl Cmd {
if shell.ends_with("/zsh") {
println!("Detected ZSH");
import::<Zsh<_>, _>(db, BATCH_SIZE).await
} else if shell.ends_with("/nu") {
println!("Detected Nu");
import::<Nu, _>(db, BATCH_SIZE).await
} else {
println!("cannot import {} history", shell);
Ok(())