Git Bash syntax error in Oh My Bash 'Sexy' Theme (solved) #528
Closed
danielferreira2
started this conversation in
General
Replies: 1 comment 3 replies
-
This is a duplicate of #211, #260, and #512, Read this comment: #211 (comment). This is not a syntax error in Oh My Bash, but an old version of Git Bash for Windows has a bug. You can update Git Bash for Windows to the latest version. $ git update-git-for-windows |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I've recently encountered a syntax error while using the 'Sexy' theme from Oh My Bash on Git Bash for Windows. The error was caused by the way command substitutions were handled in the theme's prompt configuration. Here's a brief overview of the issue and the solution I found:
Issue:
The prompt would throw errors related to command substitution and syntax near unexpected token ) when initializing the Git Bash terminal.
Solution:
I modified the PS1 variable assignment by removing unnecessary escape characters and correcting the command substitution syntax.
If this issue has already been resolved, please disregard this message.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions