Chapter 3: Advanced

Chapter 2 << Index >> Chapter 4




3.0 Reset Bash's History:

 Reset the bash history.

3.1 History Control Type:

 Choose the type of history controlling:
Erasedups Remove all previous entries of a command and keep the newest
Ignoredups Save command only once and ignore all newer executions
Ignorespace Ignore all commands run with a leading space
Ignoreboth Ignoredups and Ignorespace together

3.2 History Blacklist:

 List commands, which shouldn't be logged by the Bash, here
 Separate entries with a `:', eg:
  su:sudo:exit
 in this case su, sudo and exit wouldn't be logged by the bash.

3.3 History Size:

 The Maximum number of commands and lines in the History.
 In bash the number of commands and lines is separated,
 but BS-NG unifies both options.

3.4 Separator:

 When using the Separator style, this character(s) will be used as the separator.

3.5 PS2 PS3 and PS4:

 This will be used for PS2 PS3 and PS4, affects all styles.
 PS2/3/4 are additional prompts. PS2 is used when breaking long commands
 over several lines, PS3 is used by built-in set and PS4 for example by rpmbuild
 The character is multiplied for each increasement, eg: if set to `+', it would be
 `+' for PS2, `++' for PS3 and `+++' for PS4

3.6 PWD cut char:

 The char that signalizes that the current working directory is truncated, eg
 if set to `=' truncated PWDs look like this:
  not truncated: /home/chris/Desktop/Projekte/bashstyle-ng
  truncated: =sktop/Projekte/bashstyle-ng

3.7 Maximum PWD length

 Choose the maximum length of a non-truncated working directory.

3.8 Change CDPATH:

 Set redirections for cd. eg:
  .:/usr/share:/usr  now `cd icons' will do `cd /usr/share/icons' and `cd bin' would do `cd /usr/bin'.
 Don't forget to add . to CDPATH, else you may get unwanted results!

3.9 Change Completion Blacklist:

 Choose which files to be ignored by the filename-completion, eg:
  .back:.bak:~:.old
 now pressing [TAB] for filename-completion will ignore all files with those suffixes.

3.10 Set Timeout (in seconds):

 Choose how many seconds of inactivity Bash shall wait, before logging out automatically. 0 to disable.

3.11 Change editor for fc:  Choose which editor to run, when issuing the `fc' command.

3.12 Welcome Message:

 Choose a welcome message (only if style is not Clock-Advanced or Clock), eg:
 fortune prolinux or echo Welcome Back

3.13 PATH:

 An Application which is inside PATH can be run without passing the absolute path, eg:
  /bin:/usr/bin:/usr/local/bin
 say, `foo' is in /usr/bin, you could now call `foo' rather than `/usr/bin/foo'.