Open tnguyen2601 opened 2 weeks ago
Do you use MSYS2 Bash or Bash provided by Git for Windows? There is a known issue https://github.com/msys2/MSYS2-packages/issues/1839 in MSYS2 Bash, and Git for Windows uses MSYS2 Bash.
I use the second, Bash provided by Git for Windows.
After some digging in the linked post and a SO Thread, a fix would be to replace the \n with \012. https://stackoverflow.com/a/69668675/22786780
Applied and it did fix the issue.
Upon using any viable command in the terminal, this gets printed in the terminal:
bash: command substitution: line 1: syntax error near unexpected token `)'
bash: command substitution: line 1: `[[ -n $(_omb_prompt_git branch 2> /dev/null) ]] && echo " on (🌿 ")'
I'm not that advanced in the shell language to solve it myself.