Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions shell/shellIntegration.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {|| "" }
Expand Down
2 changes: 2 additions & 0 deletions shell/shellIntegration.xsh
Original file line number Diff line number Diff line change
@@ -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)

Expand Down
5 changes: 4 additions & 1 deletion src/shell/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,10 @@ pub fn shell_launch(shell: Shell) -> anyhow::Result<Launch> {
}
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());
Expand Down
Loading