diff --git a/crates/atuin-dotfiles/src/shell.rs b/crates/atuin-dotfiles/src/shell.rs index ce760fe1..e9e6da77 100644 --- a/crates/atuin-dotfiles/src/shell.rs +++ b/crates/atuin-dotfiles/src/shell.rs @@ -8,9 +8,9 @@ use crate::store::AliasStore; pub mod bash; pub mod fish; +pub mod nu; pub mod xonsh; pub mod zsh; -pub mod nu; #[derive(Debug, Clone, PartialEq, Eq, Serialize)] pub struct Alias { diff --git a/crates/atuin-dotfiles/src/shell/nu.rs b/crates/atuin-dotfiles/src/shell/nu.rs index de79da8a..b1b029bb 100644 --- a/crates/atuin-dotfiles/src/shell/nu.rs +++ b/crates/atuin-dotfiles/src/shell/nu.rs @@ -2,5 +2,7 @@ pub async fn var_config() -> String { // Because nushell won't autoupdate, we just parse the output of `atuin dotfiles var list` in // nushell and load the env vars that way - String::from(r#"atuin dotfiles var list | lines | parse "export {name}={value}" | reduce -f {} {|it, acc| $acc | upsert $it.name $it.value} | load-env"#) + String::from( + r#"atuin dotfiles var list | lines | parse "export {name}={value}" | reduce -f {} {|it, acc| $acc | upsert $it.name $it.value} | load-env"#, + ) }