ohmybash / oh-my-bash

A delightful community-driven framework for managing your bash configuration, and an auto-update tool so that makes it easy to keep up with the latest updates from the community.
https://ohmybash.github.io
MIT License
5.52k stars 623 forks source link

Lambda Theme error #576

Open tnguyen2601 opened 2 weeks ago

tnguyen2601 commented 2 weeks ago

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.

akinomyoga commented 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.

tnguyen2601 commented 2 weeks ago

I use the second, Bash provided by Git for Windows.

tnguyen2601 commented 2 weeks ago

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.