lab
lab copied to clipboard
Add observation on the docs about using winpty on Git Bash for Windows
lab needs some special access to the terminal on Windows that the standard bash/mintty can't handle. That's the same issue with Python and other terminal applications running on Windows.
When adding the "alias git=lab" on ~/.bashrc on Windows, the shell hangs on initialization. Adding the winpty prefix will solve it, although adding a slight delay on git commands (including the git_ps1 command to setup the PS1 var).
Can you clarify what this means: "Adding the winpty prefix will solve it"
winpty is a tool to make Windows programs, such as Python and lab, work under mintty and other terminal emulators that understand ANSI escape codes. https://github.com/rprichard/winpty This question on StackOverflow explain it in a little more detail (but not too much): https://stackoverflow.com/questions/48199794/winpty-and-git-bash
@spidey Is it still a problem?
I can use lab
normally via PowerShell. Are there any use cases you can point out for reproducing the issue?
Ok, my bad... it's an Git Bash for Windows specific issue (read the issue title 🤦♂️) But still, I wasn't able to reproduce the issue. Things seems to run as expected from what I tried.