Difference between revisions of "FAQ:PromptChoice"

From Wiki_dbSQWare
Jump to: navigation, search
(Choix du prompt)
Line 16: Line 16:
  
 
==Prompt choice==
 
==Prompt choice==
Pour changer la variable d'environnement pour tout le parc nous allons nous positionner dans le dossier
+
To configure the environment variable to modify it generically, we are going to position ourselves in the folder
   ~/dbSQWare/SQWareProduction/generic/etc_cust (depuis le SQWareCentral)
+
   ~/dbSQWare/SQWareProduction/generic/etc_cust (SQWareCentral)
Ajouter dans sqwora_GlobalVar.cfg
+
Add in sqwora_GlobalVar.cfg
 
  export gvsqw_PromptStyle=BlackWhiteOneLineLong  
 
  export gvsqw_PromptStyle=BlackWhiteOneLineLong  
Voici toutes les valeurs possibles
+
Here are all the possible values
  ColorMultiLinesShort => alias : p_cms => En couleur sur fond noir avec le passwd court ainsi que plusieurs lignes</br>
+
  ColorMultiLinesShort => alias : p_cms => Color on black background with short passwd and several lines</br>
  ColorMultiLinesLong => alias : p_cml => En couleur sur fond noir avec le passwd long ainsi que plusieurs lignes</br>
+
  ColorMultiLinesLong => alias : p_cml => Color on black background with long passwd and several lines lignes</br>
  Color2LinesShort => alias : p_c2s => En couleur sur fond noir avec le passwd court ainsi que deux lignes</br>
+
  Color2LinesShort => alias : p_c2s => Color on black background with short passwd and two lines</br>
  Color2LinesLong => alias : p_c2l => En couleur sur fond noir avec le passwd long ainsi que plusieurs lignes</br>
+
  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