Difference between revisions of "FAQ:PromptChoice"
Dtavernier (talk | contribs) (→Choix du prompt) |
Dtavernier (talk | contribs) |
||
Line 16: | Line 16: | ||
==Prompt choice== | ==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 ( | + | ~/dbSQWare/SQWareProduction/generic/etc_cust (SQWareCentral) |
− | + | Add in sqwora_GlobalVar.cfg | |
export gvsqw_PromptStyle=BlackWhiteOneLineLong | export gvsqw_PromptStyle=BlackWhiteOneLineLong | ||
− | + | Here are all the possible values | |
− | ColorMultiLinesShort => alias : p_cms => | + | ColorMultiLinesShort => alias : p_cms => Color on black background with short passwd and several lines</br> |
− | ColorMultiLinesLong => alias : p_cml => | + | ColorMultiLinesLong => alias : p_cml => Color on black background with long passwd and several lines lignes</br> |
− | Color2LinesShort => alias : p_c2s => | + | Color2LinesShort => alias : p_c2s => Color on black background with short passwd and two lines</br> |
− | Color2LinesLong => alias : p_c2l => | + | Color2LinesLong => alias : p_c2l => Color on black background with long passwd and two lines</br> |
ColorOneLineShort => alias : p_cos => En couleur sur fond noir avec le passwd court ainsi qu'une seule ligne (le défaut si bash)</br> | ColorOneLineShort => alias : p_cos => En couleur sur fond noir avec le passwd court ainsi qu'une seule ligne (le défaut si 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> |
Revision as of 09:06, 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 and several lines
ColorMultiLinesLong => alias : p_cml => Color on black background with long passwd and several lines lignes
Color2LinesShort => alias : p_c2s => Color on black background with short passwd and two lines
Color2LinesLong => alias : p_c2l => Color on black background with long passwd and two lines
ColorOneLineShort => alias : p_cos => En couleur sur fond noir avec le passwd court ainsi qu'une seule ligne (le défaut si 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