Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anyon with the same error? Theme sexy #512

Closed
cbxcvl opened this issue Dec 29, 2023 · 2 comments
Closed

Anyon with the same error? Theme sexy #512

cbxcvl opened this issue Dec 29, 2023 · 2 comments

Comments

@cbxcvl
Copy link

cbxcvl commented Dec 29, 2023

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 ")'
bash: command substitution: line 1: syntax error near unexpected token )' bash: command substitution: line 1: parse_git_branch)'
$

@cbxcvl
Copy link
Author

cbxcvl commented Dec 29, 2023

I found a fix

replace the original PS1 line with the following code:

local git_branch
git_branch=$(parse_git_branch)
local git_info
[[ -n $(_omb_prompt_git branch 2> /dev/null) ]] && git_info=" on "
PS1="$python_venv${MAGENTA}\u ${WHITE}at ${ORANGE}\h ${WHITE}in ${GREEN}\w${WHITE}${git_info}${PURPLE}${git_branch}${WHITE}\n\$ ${RESET}"

@cbxcvl cbxcvl closed this as completed Dec 29, 2023
@akinomyoga
Copy link
Contributor

akinomyoga commented Dec 29, 2023

We received similar reports from users of Git for Windows. Bash distributed with old versions of Git for Windows seems to have a bug (cf #211 (comment)).

If you use Git for Windows, what is the version of Git for Windows in your system? You can update Git for Windows to the latest version:

$ git update-git-for-windows

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants