summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorConrad Ludgate <conradludgate@gmail.com>2021-09-13 07:30:03 +0100
committerConrad Ludgate <conradludgate@gmail.com>2021-09-13 07:30:03 +0100
commit72f2f59a11670c01cb65564ebeb0c5c7cc528c29 (patch)
treecd097a40109ee7583d1671e437c383d44f70491b
parent3154566613321cfc03aafca61feac04dcf0558cf (diff)
feat: nushell auto import
-rw-r--r--src/command/import.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/command/import.rs b/src/command/import.rs
index 6ce38ec3..751315bf 100644
--- a/src/command/import.rs
+++ b/src/command/import.rs
@@ -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(())