Difference between revisions of "FAQ:PromptChoice"
Dtavernier (talk | contribs) |
Dtavernier (talk | contribs) |
||
Line 21: | Line 21: | ||
export gvsqw_PromptStyle=BlackWhiteOneLineLong | export gvsqw_PromptStyle=BlackWhiteOneLineLong | ||
Here are all the possible values | Here are all the possible values | ||
− | ColorMultiLinesShort => alias : p_cms => Color on black background with short passwd | + | ColorMultiLinesShort => alias : p_cms => Color on black background with short passwd on multiple lines</br> |
− | ColorMultiLinesLong => alias : p_cml => Color on black background with long passwd | + | ColorMultiLinesLong => alias : p_cml => Color on black background with long passwd on multiple lines</br> |
− | Color2LinesShort => alias : p_c2s => Color on black background with short passwd | + | Color2LinesShort => alias : p_c2s => Color on black background with short passwd on 2 lines</br> |
− | Color2LinesLong => alias : p_c2l => Color on black background with long passwd | + | Color2LinesLong => alias : p_c2l => Color on black background with long passwd on 2 lines</br> |
− | ColorOneLineShort => alias : p_cos => | + | ColorOneLineShort => alias : p_cos => Color on black background with short passwd on 2 lines (This is the default one on bash)</br> |
ColorOneLineLong => alias : p_col => En couleur sur fond noir avec le passwd long ainsi que plusieurs lignes</br> | ColorOneLineLong => alias : p_col => En couleur sur fond noir avec le passwd long ainsi que plusieurs lignes</br> | ||
BlackWhiteMultiLinesShort => alias : p_bms => Blanc sur fond noir avec le passwd court ainsi que plusieurs lignes</br> | BlackWhiteMultiLinesShort => alias : p_bms => Blanc sur fond noir avec le passwd court ainsi que plusieurs lignes</br> |
Revision as of 13:28, 10 April 2025
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 (SQWareCentral)
Add in sqwora_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 2 lines (This is the default one on bash)
ColorOneLineLong => alias : p_col => En couleur sur fond noir avec le passwd long ainsi que plusieurs lignes
BlackWhiteMultiLinesShort => alias : p_bms => Blanc sur fond noir avec le passwd court ainsi que plusieurs lignes
BlackWhiteMultiLinesLong => alias : p_bml => Blanc sur fond noir avec le passwd long ainsi que plusieurs lignes
BlackWhite2LinesShort => alias : p_b2s => Blanc sur fond noir avec le passwd court ainsi que deux lignes
BlackWhite2LinesLong => alias : p_b2l => Blanc sur fond noir avec le passwd long ainsi que plusieurs lignes
BlackWhiteOneLineShort => alias : p_bos => Blanc sur fond noir avec le passwd court ainsi qu'une seule ligne
BlackWhiteOneLineLong => alias : p_bol => Blanc sur fond noir avec le passwd long ainsi que plusieurs lignes (le défaut si ksh)
Pour les modifier à la volée il suffit d'utiliser les alias associés (ça changera le prompt pour la session active !)
Pour changer le prompt selon le SGBD nous allons nous positionner dans le dossier suivant(ex:pour oracle) :
~/dbSQWare/SQWareProduction/oracle/etc_cust (depuis le SQWareCentral)
Ajouter dans sqwora_GlobalVar.cfg
export gvsqw_PromptStyle=BlackWhiteOneLineLong