aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/import.rs
diff options
context:
space:
mode:
authorEllie Huxtable <e@elm.sh>2021-02-13 20:21:49 +0000
committerEllie Huxtable <e@elm.sh>2021-02-13 20:24:22 +0000
commit440c4fc2335d5286d14367e39c99bb4946efe9e3 (patch)
tree766f33c9c6b87998f22bc146fe7361e798b377df /src/command/import.rs
parentImplement history import (diff)
downloadatuin-440c4fc2335d5286d14367e39c99bb4946efe9e3.zip
Add sessions
Diffstat (limited to 'src/command/import.rs')
-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);