From 98ebaa95a02cd1d0d67d516b5a7a01b1d2b7d619 Mon Sep 17 00:00:00 2001 From: Chapman Pendery Date: Mon, 29 Jun 2026 11:04:21 -0700 Subject: [PATCH] fix: suppress startup banners for remaining shells Signed-off-by: Chapman Pendery --- shell/shellIntegration.nu | 1 + shell/shellIntegration.xsh | 2 ++ src/shell/mod.rs | 5 ++++- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/shell/shellIntegration.nu b/shell/shellIntegration.nu index 55cb9b4..31bbc96 100644 --- a/shell/shellIntegration.nu +++ b/shell/shellIntegration.nu @@ -5,6 +5,7 @@ $env.config = ($env.config | default {}) $env.config.shell_integration = ($env.config.shell_integration | default {}) $env.config.shell_integration.osc133 = true $env.config.shell_integration.osc7 = true +$env.config.show_banner = false $env.PROMPT_COMMAND = {|| "> " } $env.PROMPT_COMMAND_RIGHT = {|| "" } diff --git a/shell/shellIntegration.xsh b/shell/shellIntegration.xsh index 2d2812d..20dab32 100644 --- a/shell/shellIntegration.xsh +++ b/shell/shellIntegration.xsh @@ -1,6 +1,8 @@ import os as __su_os import socket as __su_socket +$XONSH_SUPPRESS_WELCOME = True + def __su_osc(m): print(f'\033]133;{m}\007', end='', flush=True) diff --git a/src/shell/mod.rs b/src/shell/mod.rs index d287469..fc90fa7 100644 --- a/src/shell/mod.rs +++ b/src/shell/mod.rs @@ -195,7 +195,10 @@ pub fn shell_launch(shell: Shell) -> anyhow::Result { } Shell::Cmd => { env.push(("PROMPT".to_string(), "$G ".to_string())); - (windows_exe("cmd"), vec![]) + ( + windows_exe("cmd"), + vec!["/k".to_string(), "cls".to_string()], + ) } Shell::Xonsh => { let python = which("python").unwrap_or_else(|| "python".to_string());