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

prompt in ~/.myclirc is completely ignored after updating to 1.27.1. #1155

Closed
your-diary opened this issue Apr 1, 2024 · 5 comments · Fixed by #1157
Closed

prompt in ~/.myclirc is completely ignored after updating to 1.27.1. #1155

your-diary opened this issue Apr 1, 2024 · 5 comments · Fixed by #1157

Comments

@your-diary
Copy link

your-diary commented Apr 1, 2024

$ mycli --version
Version: 1.27.1

$ grep prompt ~/.myclirc
prompt = '\n\A (\d) > '

$ mycli -D main #`prompt` in `~/.myclirc` is ignored.
MySQL root@localhost:t>

$ mycli --prompt hello_world -D main #`--prompt` is respected though.
hello_world

I don't have this problem in 1.27.0.

Maybe due to

@your-diary
Copy link
Author

your-diary commented Apr 1, 2024

Reverting #1145 in my local environment fixed the problem.

@amjith
Copy link
Member

amjith commented Apr 1, 2024

Thanks for reporting it. I'll try and reproduce it.

@otooi
Copy link

otooi commented Apr 3, 2024

I experienced the same symptoms.
When I rolled back #1144 as @your-diary said, I was able to use the prompt normally.
The prompt I used was this.
prompt = '\u@\h:\p:\d\_>\n'

@hzc989
Copy link
Contributor

hzc989 commented May 23, 2024

sorry to produce the bug and bother you guys [lol] , I recently encountered that and found this issue.

@amjith
Copy link
Member

amjith commented May 23, 2024

@hzc989 What version are you using? This is fixed in 1.27.2

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

Successfully merging a pull request may close this issue.

4 participants