Description

The Sixth Edition Thompson shell did not read/execute rc (init and logout) files. The fact that osh does so is simply one of its enhancements. This makes osh a much better login shell than it might be otherwise, as the ability to execute rc files can make things much easier for the user. An rc file is simply a regular command file that the shell treats in a special way.

The following collection of rc files provides some working examples of how to control osh during initialization and logout. For full details about how osh handles its rc files, see the Startup and shutdown subsection of the osh(1) manual page.

The rc-file collection may be downloaded (v6rcfiles-20081109.tar.gz) and installed for personal or general use. Refer to the INSTALL script, LICENSE, and README files for further information.

System-wide rc files

User rc files

Derivations of the files listed above are used by the developer on BSD-like systems. On GNU/Linux systems, the user may wish to refer to the manual pages for the utilities invoked in these files as there could be some incompatibilities. This is particularly true for stty(1).