[comp.mail.mh] How do you get the home directory in the .mh_profile?

scott@wiley.uucp (Scott Simpson) (08/29/90)

How do you get the home directory in the .mh_profile? I have a line
like

ali: -alias /home/nyssa/0/scott/.aliases

in my .mh_profile and I would like to substitute something like

ali: -alias $HOME/.aliases

or

ali: -alias ~/.aliases

Neither work.
Scott Simpson    		TRW 			scott@coyote.trw.com

matt@ODDJOB.UCHICAGO.EDU (Matt Crawford) (08/29/90)

I keep my MH aliases file inside of my top-level MH directory and
simply give the file names, with no "/".

Path: Mail
Msg-Protect: 644
Folder-Protect: 744
Draft-Folder: drafts
post: -alias MHAliases
send: -alias MHAliases
whom: -alias MHAliases
ali: -alias MHAliases
(and so on)

My aliases file is $HOME/Mail/MHAliases.
________________________________________________________
Matt Crawford	     		matt@oddjob.uchicago.edu

merlyn@iwarp.intel.com (Randal Schwartz) (08/29/90)

In article <26DAA3D0.737B@wilbur.coyote.trw.com>, scott@wiley (Scott Simpson) writes:
| How do you get the home directory in the .mh_profile? I have a line
| like
| ali: -alias /home/nyssa/0/scott/.aliases
| in my .mh_profile and I would like to substitute something like
| ali: -alias $HOME/.aliases
| or
| ali: -alias ~/.aliases
| Neither work.

A silly workaround that might just do the trick.

ali: -alias aliases

and then "ln -s $HOME/your-mail-dir/aliases $HOME/.aliases" to the shell.

or skip the second step if you really don't need to see the aliases in
your home directory.

's'what I do.  Works.  (Actually, I use "AliasFile: aliases", but you
get the drift.)

Just another MH beginning-hacker,
-- 
/=Randal L. Schwartz, Stonehenge Consulting Services (503)777-0095 ==========\
| on contract to Intel's iWarp project, Beaverton, Oregon, USA, Sol III      |
| merlyn@iwarp.intel.com ...!any-MX-mailer-like-uunet!iwarp.intel.com!merlyn |
\=Cute Quote: "Welcome to Portland, Oregon, home of the California Raisins!"=/