FAQ:PromptChoice

From Wiki_dbSQWare
Jump to: navigation, search

Work in Progress

Generalties

Limits of this section

This section doesn't claim to cover every possible scenario for configuring prompt.
The principle is to have the prompt you desire, pre-configured by DBSQWARE.

You need to have dbSQWare v2025.01.

Only bash support every options !

Principle

We will :

  • Configure the environment variable to modify it generically
  • You can change the BASH prompt temporarily by using the aliases

Prompt choice

To configure the environment variable to modify it generically, we are going to position ourselves in the folder

 ~/dbSQWare/SQWareProduction/generic/etc_cust (From SQWareCentral)

Add in sqwgen_GlobalVar.cfg

export gvsqw_PromptStyle=BlackWhiteOneLineLong 

Here are all the possible values

ColorMultiLinesShort => alias : p_cms => Color on black background with short passwd on multiple lines
ColorMultiLinesLong => alias : p_cml => Color on black background with long passwd on multiple lines
Color2LinesShort => alias : p_c2s => Color on black background with short passwd on 2 lines
Color2LinesLong => alias : p_c2l => Color on black background with long passwd on 2 lines
ColorOneLineShort => alias : p_cos => Color on black background with short passwd on 1 line
ColorOneLineLong => alias : p_col => Color on black background with long passwd on 1 line
BlackWhiteMultiLinesShort => alias : p_bms => White on black background with short passwd on multiple lines
BlackWhiteMultiLinesLong => alias : p_bml => White on black background with slong passwd on multiple lines
BlackWhite2LinesShort => alias : p_b2s => White on black background with short passwd on 2 lines
BlackWhite2LinesLong => alias : p_b2l => White on black background with long passwd on 2 lines
BlackWhiteOneLineShort => alias : p_bos => White on black background with short passwd on 1 lines
BlackWhiteOneLineLong => alias : p_bol => White on black background with long passwd on 1 lines


You can change the BASH prompt temporarily by using the aliases

To configure the environment variable to modify it by SGBD, we are going to position ourselves in the folder(ex: oracle) :

~/dbSQWare/SQWareProduction/oracle/etc_cust (From SQWareCentral)

Add in sqwora_GlobalVar.cfg

export gvsqw_PromptStyle=BlackWhiteOneLineLong