diff options
author | Conrad Ludgate <conradludgate@gmail.com> | 2021-09-13 07:30:03 +0100 |
---|---|---|
committer | Conrad Ludgate <conradludgate@gmail.com> | 2021-09-13 07:30:03 +0100 |
commit | 72f2f59a11670c01cb65564ebeb0c5c7cc528c29 (patch) | |
tree | cd097a40109ee7583d1671e437c383d44f70491b | |
parent | 3154566613321cfc03aafca61feac04dcf0558cf (diff) |
feat: nushell auto import
-rw-r--r-- | src/command/import.rs | 3 |
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(()) |