Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows Terminal + Git For Windows = ❌ #46

Open
julianxhokaxhiu opened this issue Jul 1, 2021 · 7 comments
Open

Windows Terminal + Git For Windows = ❌ #46

julianxhokaxhiu opened this issue Jul 1, 2021 · 7 comments

Comments

@julianxhokaxhiu
Copy link

julianxhokaxhiu commented Jul 1, 2021

Hi,

I'm trying to use Win-Sudo on Git For Windows 2.32 through Windows Terminal using the native profile created during ( and offered through ) the installer. Overall the whole integration works fine, although win-sudo seems to apparently hang with no reply doesn't matter which command you run: su, sudo bash or whatever.

Have you ever tested this scenario and can you suggest please how to get it running? On my own end I dumped the printenv variables and the only difference I noticed was these two missing lines between each other, which are declared in Git Bash, but are NOT on Windows Terminal

TERM_PROGRAM=mintty
TERM_PROGRAM_VERSION=3.5.0

I would appreciate if you could find some time to check this, otherwise I'll try to fire a PR as soon as I'll find some time to work on it.

Thank you in advance,
Julian

@purplesyringa
Copy link
Owner

I no longer use Windows as my main OS so I doubt I'll be able to fix this error myself. All help is appreciated.

@art3xias23
Copy link

Hi guys, was anyone able to PR a fix for this?

@riedel
Copy link
Contributor

riedel commented Jan 1, 2023

It seems that windows terminal uses a different console driver. I checked and the problem is that the host session gets /dev/cons0 assigned and the backend only sees eg. /dev/cons1. mintty uses /dev/pty0 which you seem to be stable across elevation.

@riedel
Copy link
Contributor

riedel commented Jan 16, 2023

I think this is also a duplicate of #36

@riedel
Copy link
Contributor

riedel commented Mar 4, 2023

fixed in 5b2d65b ?

@Aroax
Copy link

Aroax commented Apr 5, 2023

I am also encountering the same issue in Hyper using git-bash shell. Indefinite hang on sudo commands or trying to use su, after UAC prompt, using latest version of this tool.

@samlletas
Copy link

Installed this and seems to be working fine in windows terminal, something I did though was to remove the generated .bashrc file and add it's contents to my .bash_profile instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants