dbcli / mycli

A Terminal Client for MySQL with AutoCompletion and Syntax Highlighting.

Home Page:http://mycli.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

your-diary opened this issue · comments

commented
$ 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

commented

Reverting #1145 in my local environment fixed the problem.

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

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'

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

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