Difference between revisions of "FAQ:PromptChoice"

From Wiki_dbSQWare
Jump to: navigation, search
(Principe)
 
(6 intermediate revisions by the same user not shown)
Line 13: Line 13:
 
We will :
 
We will :
 
* Configure the environment variable to modify it generically
 
* Configure the environment variable to modify it generically
* A la volée changer le prompt
+
* You can change the BASH prompt temporarily by using the aliases
  
==Choix du prompt==
+
==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 (From SQWareCentral)
Ajouter dans sqwora_GlobalVar.cfg
+
Add in sqwgen_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 on multiple 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 on multiple lines</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 on 2 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 on 2 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 => Color on black background with short passwd on 1 line</br>
  ColorOneLineLong => alias : p_col => En couleur sur fond noir avec le passwd long ainsi que plusieurs lignes</br>
+
  ColorOneLineLong => alias : p_col => Color on black background with long passwd on 1 line</br>
  BlackWhiteMultiLinesShort => alias : p_bms => Blanc sur fond noir avec le passwd court ainsi que plusieurs lignes</br>
+
  BlackWhiteMultiLinesShort => alias : p_bms => White on black background with short passwd on multiple lines</br>
  BlackWhiteMultiLinesLong => alias : p_bml => Blanc sur fond noir avec le passwd long ainsi que plusieurs lignes</br>
+
  BlackWhiteMultiLinesLong => alias : p_bml => White on black background with slong passwd on multiple lines</br>
  BlackWhite2LinesShort => alias : p_b2s => Blanc sur fond noir avec le passwd court ainsi que deux lignes</br>
+
  BlackWhite2LinesShort => alias : p_b2s => White on black background with short passwd on 2 lines</br>
  BlackWhite2LinesLong => alias : p_b2l => Blanc sur fond noir avec le passwd long ainsi que plusieurs lignes</br>
+
  BlackWhite2LinesLong => alias : p_b2l => White on black background with long passwd on 2 lines</br>
  BlackWhiteOneLineShort => alias : p_bos => Blanc sur fond noir avec le passwd court ainsi qu'une seule ligne</br>
+
  BlackWhiteOneLineShort => alias : p_bos => White on black background with short passwd on 1 lines</br>
  BlackWhiteOneLineLong => alias : p_bol => Blanc sur fond noir avec le passwd long ainsi que plusieurs lignes (le défaut si ksh)</br>
+
  BlackWhiteOneLineLong => alias : p_bol => White on black background with long passwd on 1 lines</br>
  
  
Pour les modifier à la volée il suffit d'utiliser les alias associés (ça changera le prompt pour la session active !)</br>
+
You can change the BASH prompt temporarily by using the aliases</br>
  
Pour changer le prompt selon le SGBD nous allons nous positionner dans le dossier suivant(ex:pour oracle) : </br>
+
To configure the environment variable to modify it by SGBD, we are going to position ourselves in the folder(ex: oracle) : </br>
  ~/dbSQWare/SQWareProduction/oracle/etc_cust (depuis le SQWareCentral)
+
  ~/dbSQWare/SQWareProduction/oracle/etc_cust (From SQWareCentral)
Ajouter dans sqwora_GlobalVar.cfg
+
Add in sqwora_GlobalVar.cfg
 
  export gvsqw_PromptStyle=BlackWhiteOneLineLong
 
  export gvsqw_PromptStyle=BlackWhiteOneLineLong

Latest revision as of 09:14, 11 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 (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