From 97f207b771b94c5285faae4810d6eeda1b78926b Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Thu, 11 Jun 2026 16:10:29 +0200 Subject: chore(server): Simplify the database support --- crates/turtle/src/command/client/init.rs | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) (limited to 'crates/turtle/src/command/client/init.rs') diff --git a/crates/turtle/src/command/client/init.rs b/crates/turtle/src/command/client/init.rs index 776100cf..0643cb73 100644 --- a/crates/turtle/src/command/client/init.rs +++ b/crates/turtle/src/command/client/init.rs @@ -1,4 +1,4 @@ -use crate::atuin_client::settings::{Settings, Tmux}; +use crate::atuin_client::settings::Settings; use clap::{Parser, ValueEnum}; mod bash; @@ -43,10 +43,9 @@ pub(crate) enum Shell { } impl Cmd { - fn init_nu(&self, _tmux: &Tmux) { + fn init_nu(&self) { let full = include_str!("../../shell/atuin.nu"); - // TODO: tmux popup for Nu println!("{full}"); if std::env::var("ATUIN_NOBIND").is_err() { @@ -91,26 +90,24 @@ $env.config = ( } fn static_init(&self, settings: &Settings) { - let tmux = &settings.tmux; - match self.shell { Shell::Zsh => { - zsh::init_static(self.disable_up_arrow, self.disable_ctrl_r, tmux); + zsh::init_static(self.disable_up_arrow, self.disable_ctrl_r); } Shell::Bash => { - bash::init_static(self.disable_up_arrow, self.disable_ctrl_r, tmux); + bash::init_static(self.disable_up_arrow, self.disable_ctrl_r); } Shell::Fish => { - fish::init_static(self.disable_up_arrow, self.disable_ctrl_r, tmux); + fish::init_static(self.disable_up_arrow, self.disable_ctrl_r); } Shell::Nu => { - self.init_nu(tmux); + self.init_nu(); } Shell::Xonsh => { - xonsh::init_static(self.disable_up_arrow, self.disable_ctrl_r, tmux); + xonsh::init_static(self.disable_up_arrow, self.disable_ctrl_r); } Shell::PowerShell => { - powershell::init_static(self.disable_up_arrow, self.disable_ctrl_r, tmux); + powershell::init_static(self.disable_up_arrow, self.disable_ctrl_r); } } } -- cgit v1.3.1