From e9c5e1d85c5c1d3310fb7994c474f9462c0bca97 Mon Sep 17 00:00:00 2001 From: YummyOreo Date: Sun, 5 Mar 2023 13:00:59 -0600 Subject: Windows support (#754) * adds support for getting home dir in windows * fixes bug * adds windows server support + build for linux ^| todo: test server on linux * improvements to redability * removes comment * returns if windows when importing auto * this should be here, to prevent double inputs * adds explanation to why we have to throw away 1 event in the tui * better message when running atuin import on windows + spell fix --- src/command/client/import.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/command/client/import.rs') diff --git a/src/command/client/import.rs b/src/command/client/import.rs index f14598f2..7d7c2caf 100644 --- a/src/command/client/import.rs +++ b/src/command/client/import.rs @@ -45,6 +45,11 @@ impl Cmd { match self { Self::Auto => { + if cfg!(windows) { + println!("This feature does not work on windows. Please run atuin import . To view a list of shells, run atuin import."); + return Ok(()); + } + let shell = env::var("SHELL").unwrap_or_else(|_| String::from("NO_SHELL")); if shell.ends_with("/zsh") { if ZshHistDb::histpath().is_ok() { -- cgit v1.3.1