mithrandie / csvq

SQL-like query language for csv
https://mithrandie.github.io/csvq
MIT License
1.49k stars 65 forks source link

Request for Feature / Question #63

Closed ondohotola closed 2 years ago

ondohotola commented 3 years ago

Is it possible to have the (interactive) prompt in color?

Currently CSVQ:/Users/user> is not visibly different from ~/Users/user but if one could put the CSVQ of the prompt into a (bold) color it would be helpful in my view.

greetings, el

mithrandie commented 3 years ago

The prompt can be changed by editing the csvq configuration file.

As an example, you can save the csvq_env.json file as .csvq_env.json in your home directory, and change the interactive_shell.prompt item in the file as you wish. If the --color option is enabled, the displayed characters will be colored according to ANSI escape sequences in the value of the interactive_shell.prompt item.

There are some other paths you can choose to save the configuration file besides the home directory. https://mithrandie.github.io/csvq/reference/command.html#configurations