oh-my-bash icon indicating copy to clipboard operation
oh-my-bash copied to clipboard

Lambda Theme error

Open tnguyen2601 opened this issue 1 year ago • 3 comments

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.

tnguyen2601 avatar Jun 14 '24 08:06 tnguyen2601

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.

akinomyoga avatar Jun 14 '24 09:06 akinomyoga

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

tnguyen2601 avatar Jun 14 '24 09:06 tnguyen2601

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.

tnguyen2601 avatar Jun 14 '24 09:06 tnguyen2601