dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.
http://mycli.net
Other
11.32k stars 656 forks source link

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

Closed your-diary closed 3 months ago

your-diary commented 3 months ago
$ 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 commented 3 months ago

Reverting #1145 in my local environment fixed the problem.

amjith commented 3 months ago

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

otooi commented 3 months ago

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 commented 1 month ago

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

amjith commented 1 month ago

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