INSTALL-MH(1)

πŸ“¦
version 1.8 Β· 4 versions
, in alpine 3.24, epel 10, epel 9, fedora 43, fedora 44

πŸ’– INSTALL-MH(1) πŸ’–

okay bestie, gather round, because this is the General Commands Manual page for install-mh and it's literally the glow-up your nmh setup has been waiting for ✨


✨ NAME ✨

install-mh β€” initialize the nmh environment 🫢


🌸 SYNOPSIS 🌸

/usr/libexec/nmh/install-mh [-help] [-version] [-auto] [-check]

πŸŽ€ DESCRIPTION πŸŽ€

So like, install-mh does the initial setup for a first-time nmh user. It's giving "welcome to the group chat, here's your profile" πŸ’…

Real talk though: install-mh is installed in two locations, for historical reasons. Not a vibe, just a fact. πŸ™ˆ

  • -auto β€” does things as automatically as possible and makes install-mh less chatty. Basically it stops yapping.

Then the user gets prompted for the name of the directory that's gonna be designated as their nmh directory. If that directory doesn't exist, the user gets asked if it should be created. Normally this directory should live under the user's home directory, and it has the default name of Mail. Then install-mh writes an initial .mh_profile for the user. iconic.

Now, like with all nmh commands, install-mh first checks for the existence of the $MH environment variable, since that β€” if it's set β€” gives the profile path. If it isn't set, the $HOME environment variable gets consulted to determine the user's home directory. And if $HOME is not set, then the /etc/passwd file gets consulted. the way it just keeps asking around 😭

When it's creating the user's .mh_profile, install-mh will check for the existence of a global profile at /etc/nmh/mh.profile. If found, that will be used to initialize the new .mh_profile. slay, inherited taste πŸ’–

  • -check β€” checks if nmh is installed. (This can be used by other programs to determine if nmh has been installed.) lowkey a vibe check for your whole install πŸ‘‘

And finally: install-mh sets up the user's profile to support the mh-draft(5) draft folder facility. ✨


🌈 OPTIONS 🌈

  • -help β€” the classic. help me help you bestie 🫢
  • -version β€” shows the version, obviously πŸ’…
  • -auto β€” does things as automatically as possible and makes install-mh less chatty πŸŽ€
  • -check β€” checks if nmh is installed (other programs can use this to determine if nmh has been installed) πŸ”₯

πŸ¦‹ FILES πŸ¦‹

  • $HOME/.mh_profile β€” The user's profile. πŸ’œ
  • /etc/nmh/mh.profile β€” Used to initialize user's profile. 🌸

πŸ’« PROFILE COMPONENTS πŸ’«

  • Path: β€” To set the user's nmh directory. πŸ‘‘

🧚 SEE ALSO 🧚


⭐ CONTEXT ⭐

With -auto, the current folder is changed to β€œinbox”. periodt. πŸ“₯


no cap, don't skip the $MH / $HOME / /etc/passwd chain β€” that's the whole search order, fr fr πŸ’€

and that's the whole page, bestie!! this one's from nmh-1.8, dated 2022-12-22, straight out of the General Commands Manual β€” go forth and initialize, you absolute main character πŸ‘‘πŸ’–βœ¨

πŸ“¦ where this page comes from