aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/import.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/command/import.rs13
1 files changed, 12 insertions, 1 deletions
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);