VirtusLab / git-machete

Probably the sharpest git repository organizer & rebase/merge workflow automation tool you've ever seen
MIT License
913 stars 54 forks source link

Status coloring doesn't work correctly on git bash (windows) #490

Open mkondratek opened 2 years ago

mkondratek commented 2 years ago

Running windows 8.1, git bash (from intellij but git bash itself gives the same result).

image.

git machete version 3.8.0

env

/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cmd
ALLUSERSPROFILE=C:\ProgramData
APPDATA=C:\Users\mikson\AppData\Roaming
COMMONPROGRAMFILES=C:\Program Files\Common Files
COMPUTERNAME=TCOM
COMSPEC=C:\WINDOWS\system32\cmd.exe
CommonProgramFiles(x86)=C:\Program Files (x86)\Common Files
CommonProgramW6432=C:\Program Files\Common Files
EXEPATH=C:\Program Files\Git\bin
FP_NO_HOST_CHECK=NO
HOME=/c/Users/mikson
HOMEDRIVE=C:
HOMEPATH=\Users\mikson
IDEA_INITIAL_DIRECTORY=C:\WINDOWS\system32
LOCALAPPDATA=C:\Users\mikson\AppData\Local
LOGONSERVER=\\TCOM
MSYSTEM=MINGW64
NUMBER_OF_PROCESSORS=4
OLDPWD=/c/Users/mikson/machete-sandbox
OS=Windows_NT
PATH=/mingw64/bin:/usr/bin:/c/Users/mikson/bin:/c/Program Files/Python38/Scripts:/c/Program Files/Python38:/c/WINDOWS/system32:/c/WINDOWS:/c/WINDOWS/System32/Wbem:
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC;.PY;.PYW
PLINK_PROTOCOL=ssh
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
PROGRAMFILES=C:\Program Files
PS1=\[\033]0;$TITLEPREFIX:$PWD\007\]\n\[\033[32m\]\u@\h \[\033[35m\]$MSYSTEM \[\033[33m\]\w\[\033[36m\]`__git_ps1`\[\033[0m\]\n$
PSModulePath=C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules\
PUBLIC=C:\Users\Public
PWD=/c/Users/mikson/machete-sandbox/filter-service
ProgramData=C:\ProgramData
ProgramFiles(x86)=C:\Program Files (x86)
ProgramW6432=C:\Program Files
SHLVL=1
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINDOWS
TEMP=/tmp
TERM=cygwin
TERMINAL_EMULATOR=JetBrains-JediTerm
TERM_SESSION_ID=f1e7b9ca-36c1-4888-ae71-cd28c59f7487
TMP=/tmp
USERDOMAIN=TCoM
USERDOMAIN_ROAMINGPROFILE=TCoM
USERNAME=mikson
USERPROFILE=C:\Users\mikson
WINDIR=C:\WINDOWS
_=/usr/bin/env
__COMPAT_LAYER=RunAsAdmin Installer
__INTELLIJ_COMMAND_HISTFILE__=C:\Users\mikson\AppData\Local\JetBrains\IdeaIC2021.3\terminal\history\git-machete-intellij-plugin-history1
PawelLipski commented 2 years ago

For reference, pls also attach env | sort from the other terminal (I'm assuming the above env is coming from IntelliJ right?)

PawelLipski commented 2 years ago

~Pls also check the default Windows terminal (cmd.exe) and PowerShell (both git machete status and env | sort)~

Nope, actually better: pls check tput colors in either git bash or IntelliJ terminal, that's gonna be more useful

mkondratek commented 2 years ago

$ tput colors 8