目前,当我启动cqlsh时,我得到:
ubuntu@ip-172-31-83-106:~$ cqlsh
Connected to Test Cluster at 127.0.0.1:9042.
[cqlsh 5.0.1 | Cassandra 3.11.4 | CQL spec 3.4.4 | Native protocol v4]
Use HELP for help.
cqlsh>
我想改变
cqlsh>
不是什么特别的东西,比如
ubuntu@ip-172-31-83-106>
每次我运行查询时,提示符都会保持不变。我该怎么做?
1条答案
按热度按时间dvtswwa31#
cqlsh对定制提示符的支持非常有限。唯一可以引入prompt的自定义内容是应该通过
CQLSH_PROMPT
将在cqlsh>
字符串(请参阅源代码)例如,如果你开始你的cqlsh
然后你会得到这样的结果:
但这就是你能做的。