From 440c4fc2335d5286d14367e39c99bb4946efe9e3 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sat, 13 Feb 2021 20:21:49 +0000 Subject: Add sessions --- src/command/import.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/command/import.rs') diff --git a/src/command/import.rs b/src/command/import.rs index 5ece13a8..5ce0e749 100644 --- a/src/command/import.rs +++ b/src/command/import.rs @@ -87,12 +87,23 @@ impl ImportCmd { } pub fn run(&self, db: &mut SqliteDatabase) -> Result<()> { + println!(" A'Tuin "); + println!("====================="); + println!(" 🌍 "); + println!(" 🐘🐘🐘🐘 "); + println!(" 🐢 "); + println!("====================="); + println!("Importing history..."); + match self { ImportCmd::Auto => { let shell = env::var("SHELL").unwrap_or(String::from("NO_SHELL")); match shell.as_str() { - "/bin/zsh" => self.import_zsh(db), + "/bin/zsh" => { + println!("Detected ZSH"); + self.import_zsh(db) + } _ => { println!("cannot import {} history", shell); -- cgit v1.3.1