Install-mh is the
nmh program to create the initial setup
for a first-time
Install-mh lives in two places for historical reasons.
The -auto option does things as automatically as possible and
makes install-mh less chatty.
The user is asked
for the name of the directory that will be designated as the users
nmh directory. If this directory does not exist, the user is
asked if it should be created. Normally, this directory should be
under the users home directory, and has the default name of
Install-mh writes an initial
.mh_profile for the user.
As with all
install-mh first checks for the existence of the $MH environment variable
since that gives the profile path if set.
If it isnt set, the
$HOME environment variable is consulted to determine the users home directory.
$HOME is not set, then the
/etc/passwd file is consulted.
When creating the users initial
install-mh will check for the existence of a global profile
/usr/local/etc/nmh/mh.profile. If found, this will be used to initialize the new
The -check option can be used to check whether or not nmh has
This can be used by other programs to determine whether or not nmh has
been installed without their having to know the internals of nmh.