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());