Terminal output disappearing after SSH into cygwin

Ken Brown kbrown@cornell.edu
Thu Jan 21 19:32:38 GMT 2021


On 1/21/2021 1:30 PM, Takashi Yano via Cygwin wrote:
> On Thu, 21 Jan 2021 13:13:56 -0500
> Ken Brown wrote:
>> # when leaving the console clear the screen to increase privacy
>> if [ "$SHLVL" = 1 ]; then
>>     [ -x /usr/bin/clear ] && /usr/bin/clear
>> fi
> 
> That should be the culprit.
> Is editing /etc/bash.bash_logout the right thing?

That's what I do.  The only caveat is that once you edit that file, it will 
never be updated by setup again.  So if there's a new release of base-files, you 
should compare /etc/bash.bash_logout with /etc/defaults/etc/bash.bash_logout to 
see if there are any changes that you want to pick up.

Ken


More information about the Cygwin mailing list