diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 16:10:29 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-11 16:10:29 +0200 |
| commit | 97f207b771b94c5285faae4810d6eeda1b78926b (patch) | |
| tree | 4482544233c30e0e9a62be6afcfe92c8e01b0a50 /crates/turtle/src/command/client/init.rs | |
| parent | chore: Remove all `pub`s (diff) | |
| download | atuin-97f207b771b94c5285faae4810d6eeda1b78926b.zip | |
chore(server): Simplify the database support
Diffstat (limited to 'crates/turtle/src/command/client/init.rs')
| -rw-r--r-- | crates/turtle/src/command/client/init.rs | 19 |
1 files changed, 8 insertions, 11 deletions
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); } } } |
