PowerShell / PowerShell/Win32-OpenSSH

How to turn off clear screen on login when `bash.exe` is the shell?

Open
#1,806 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
8.3k
Forks
819
PR merge metrics
No merged PRs in 30d

Description

I'm not interested in maintaining compatibility as previously mentioned and needed for cmd.exe and PowerShell. I want to be able to turn off the login clear screen for when using WSL bash as the default shell (eg, these instructions) on ssh'ing into a system. How do I do this?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked issue 1738 and the referenced WSL/bash.exe SSH instructions to understand the existing compatibility requirements. Investigate how login sessions clear the screen when bash.exe is the shell; done would be a documented or implemented way to disable that behavior without breaking the stated shell scenarios.

Written by the indexing model from the issue text.

Assessment

Tech stack
bash
Domain
cli, operating-systems
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.