11.04.2013 Views

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

Guida avanzata di scripting Bash - Portale Posta DMI

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

=============<br />

The following environment variables can be set:<br />

Appen<strong>di</strong>ce A. Script aggiuntivi<br />

CDL_PROMPTLEN - Set to the length of prompt you require.<br />

Prompt string is set to the right characters of the current<br />

<strong>di</strong>rectory. If not set, then prompt is left unchanged. Note<br />

that this is the number of characters that the <strong>di</strong>rectory is<br />

shortened to, not the total characters in the prompt.<br />

CDL_PROMPT_PRE - Set to the string to prefix the prompt.<br />

Default is:<br />

non-root: "\\[\\e[01;34m\\]" (sets colour to blue).<br />

root: "\\[\\e[01;31m\\]" (sets colour to red).<br />

CDL_PROMPT_POST - Set to the string to suffix the prompt.<br />

Default is:<br />

non-root: "\\[\\e[00m\\]$" (resets colour and <strong>di</strong>splays $).<br />

root: "\\[\\e[00m\\]#" (resets colour and <strong>di</strong>splays #).<br />

Note:<br />

CDL_PROMPT_PRE & _POST only t<br />

CDPath - Set the default path for the -f & -u options.<br />

Default is home <strong>di</strong>rectory<br />

CDFile - Set the default filename for the -f & -u options.<br />

Default is cdfile<br />

There are three variables defined in the file cdll which control the<br />

number of entries stored or <strong>di</strong>splayed. They are in the section labeled<br />

’Initialisation here’ towards the end of the file.<br />

cd_maxhistory - The number of history entries stored.<br />

Default is 50.<br />

cd_maxspecial - The number of special entries allowed.<br />

Default is 9.<br />

cd_histcount - The number of history and special entries<br />

<strong>di</strong>splayed. Default is 9.<br />

Note that cd_maxspecial should be >= cd_histcount to avoid <strong>di</strong>splaying<br />

special entries that can’t be set.<br />

Version: 1.2.1 Date: 24-MAY-2003<br />

DOCUMENTATION<br />

760

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!