📄 mh-profile.me
字号:
^mhlproc:~^/usr/contrib/mh-6.8/lib/mhl^moreproc:~^/usr/ucb/more^mshproc:~^/usr/contrib/mh-6.8/bin/msh^packproc:~^/usr/contrib/mh-6.8/bin/packf^postproc:~^/usr/contrib/mh-6.8/lib/post^rmmproc:~^none^rmfproc:~^/usr/contrib/mh-6.8/bin/rmf^sendproc:~^/usr/contrib/mh-6.8/bin/send^showproc:~^/usr/ucb/more^whatnowproc:~^/usr/contrib/mh-6.8/bin/whatnow^whomproc:~^/usr/contrib/mh-6.8/bin/whom.re.in -.5i.fiIf you define the envariable \fBMH\fR,you can specify a profile other than \fI\&.mh\(ruprofile\fR to be readby the \fIMH\fR programs that you invoke.If the value of \fBMH\fR is not absolute,(i.e., does not begin with a \fB/\fR\0),it will be presumed to start from the current working directory.This is one of the very few exceptions in \fIMH\fR where non-absolutepathnames are not considered relative to the user's \fIMH\fR directory.Similarly,if you define the envariable \fBMHCONTEXT\fR,you can specify a context other than the normal context file(as specified in the \fIMH\fR profile).As always,unless the value of \fBMHCONTEXT\fR is absolute,it will be presumed to start from your \fIMH\fR directory.\fIMH\fR programs also support other envariables:.in +.5i.ti -.5i\fBMAILDROP\fR\0: tells \fIinc\fR the default maildrop.brThis supercedes the \*(lqMailDrop:\*(rq profile entry..ti -.5i\fBSIGNATURE\fR\0: tells \fIsend\fR and \fIpost\fR your mail signature.brThis supercedes the \*(lqSignature:\*(rq profile entry..ti -.5i\fBHOME\fR\0: tells all \fIMH\fR programs your home directory.ti -.5i\fBSHELL\fR\0: tells \fIbbl\fR the default shell to run.ti -.5i\fBTERM\fR\0: tells \fIMH\fR your terminal type.brThe \fBTERMCAP\fR envariable is also consulted.In particular,these tell \fIscan\fR and \fImhl\fR how to clear your terminal,and how many columns wide your terminal is.They also tell \fImhl\fR how many lines long your terminal screen is..ti -.5i\fBeditalt\fR\0: the alternate message.brThis is set by \fIdist\fR and \fIrepl\fR during edit sessionsso you can peruse the message being distributed or replied to.The message is also available through a link called \*(lq@\*(rqin the current directory if your current working directory andthe folder the message lives in are on the same UNIX filesystem..ti -.5i\fBmhdraft\fR\0: the path to the working draft.brThis is set by \fIcomp\fR, \fIdist\fR, \fIforw\fR, and \fIrepl\fRto tell the \fIwhatnowproc\fR which file to ask \*(lqWhat now?\*(rq questionsabout.In addition,\fIdist\fR, \fIforw\fR, and \fIrepl\fR set \fBmhfolder\fR if appropriate.Further,\fIdist\fR and \fIrepl\fR set \fBmhaltmsg\fR to tell the\fIwhatnowproc\fR about an alternate message associated with the draft(the message being distributed or replied to),and\fIdist\fR sets \fBmhdist\fR to tell the \fIwhatnowproc\fR thatmessage re-distribution is occurring.Also,\fBmheditor\fR is set to tell the \fIwhatnowproc\fR the user's choice ofeditor (unless overridden by `\-noedit').Similarly,\fBmhuse\fR may be set by \fIcomp\fR.Finally,\fBmhmessages\fR is set by \fIdist\fR, \fIforw\fR, and \fIrepl\fRif annotations are to occur(along with \fBmhannotate\fR, and \fBmhinplace\fR).It's amazing all the information that has to get passed via envariables tomake the \*(lqWhat now?\*(rq interface look squeaky clean to the \fIMH\fRuser, isn't it?The reason for all thisis that the \fIMH\fR user can select \fIany\fR program as the\fIwhatnowproc\fR, including one of the standard shells.As a result, it's not possible to pass information via an argument list..brIf the WHATNOW option was set during \fIMH\fR configuration(type `\-help' to an \fIMH\fR command to find out),and if this envariable is set,if the commands \fIrefile\fR, \fIsend\fR, \fIshow\fR, or \fIwhom\fRare not given any `msgs' arguments,then they will default to using the file indicated by \fBmhdraft\fR.This is useful for getting the default behavior supplied by the default\fIwhatnowproc\fR..ti -.5i\fBmhfolder\fR\0: the folder containing the alternate message.brThis is set by \fIdist\fR and \fIrepl\fR during edit sessionsso you can peruse other messages in the current folderbesides the one being distributed or replied to.The \fBmhfolder\fR envariable is alsoset by \fIshow\fR, \fIprev\fR, and \fInext\fRfor use by \fImhl\fR..ti -.5i\fBMHBBRC\fR\0: .brIf you define the envariable \fBMHBBRC\fR,you can specify a BBoards information file other than \fI\&.bbrc\fR to beread by \fIbbc\fR.If the value of \fBMHBBRC\fR is not absolute,(i.e., does not begin with a \fB/\fR\0),it will be presumed to start from the current working directory..ti -.5i\fBMHFD\fR\0: .brIf the OVERHEAD option was set during \fIMH\fR configuration(type `\-help' to an \fIMH\fR command to find out),then if this envariable is set,\fIMH\fR considers it to be the number of a file descriptor which is opened,read-only to the \fIMH\fR profile.Similarly,if the envariable \fBMHCONTEXTFD\fR is set,this is the number of a file descriptor which is opened read-onlyto the \fIMH\fR context.This feature of \fIMH\fR is experimental,and is used to examine possible speed improvements for \fIMH\fR startup.Note that these envariables must be set and non-empty to enable this feature.However,if OVERHEAD is enabled during \fIMH\fR configuration,then when \fIMH\fR programs call other \fIMH\fR programs,this scheme is used.These file descriptors are not closed throughout the execution of the\fIMH\fR program,so children may take advantage of this.This approach is thought to be completely safe and does result in someperformance enhancements..in -.5i.Fi^$HOME/\&.mh\(ruprofile~^The user profile^or $MH~^Rather than the standard profile^<mh\-dir>/context~^The user context^or $CONTEXT~^Rather than the standard context^<folder>/\&.mh\(rusequences~^Public sequences for <folder>.PrAll.Samh(1), environ(5), mh-sequence(5).DeNone.CoAll.HiIn previous versions of \fIMH\fR,the current-message value of a writable folder was kept in a filecalled \*(lqcur\*(rq in the folder itself.In \fImh.3\fR,the \fI\&.mh\(ruprofile\fR contained the current-message values forall folders, regardless of their writability.In all versions of \fIMH\fR since \fImh.4\fR,the \fI\&.mh\(ruprofile\fR contains only static information,which \fIMH\fR programs will \fBNOT\fR update.Changes in context are made to the \fIcontext\fR file kept in the users MH\fIdirectory\fR.This includes, but is not limited to:the \*(lqCurrent\-Folder\*(rq entry and all private sequence information.Public sequence information is kept in a file called \fI\&.mh\(rusequences\fRin each folder.To convert from the format used in releases of \fIMH\fR priorto the format used in the \fImh.4\fR release,\fIinstall\-mh\fR should be invoked with the `\-compat' switch.This generally happens automatically on \fIMH\fR systems generated with the\*(lqCOMPAT\*(rq option during \fIMH\fR configuration.The \fI\&.mh\(ruprofile\fR may override the path of the \fIcontext\fR file,by specifying a \*(lqcontext\*(rq entry (this must be in lower-case).If the entry is not absolute (does not start with a \fB/\fR\0),then it is interpreted relative to the user's \fIMH\fR directory.As a result,you can actually have more than one set of private sequences by usingdifferent context files..BuThe shell quoting conventions are not available in the \&.mh\(ruprofile.Each token is separated by whitespace.There is some question as to what kind of arguments should be placed inthe profile as options.In order to provide a clear answer,recall command line semantics of all \fIMH\fR programs:conflicting switches (e.g., `\-header and `\-noheader')may occur more than one time on the command line,with the last switch taking effect.Other arguments,such as message sequences, filenames and folders,are always remembered on the invocation line and are not superseded by following arguments of the same type.Hence, it is safe to place only switches (and their arguments)in the profile.If one finds that an \fIMH\fRprogram is being invoked again and again with the same arguments,and those arguments aren't switches,then there are a few possible solutions to this problem.The first is to create a (soft) link in your \fI$HOME/bin\fR directoryto the \fIMH\fR program of your choice.By giving this link a different name,you can create a new entry in your profileand use an alternate set of defaults for the \fIMH\fR command.Similarly, you could create a small shell script which called the\fIMH\fR program of your choice with an alternate set of invocationline switches (using links and an alternate profile entry is preferableto this solution).Finally, the \fIcsh\fR user could create an alias for the command of the form:.ti +.5ialias cmd 'cmd arg1 arg2 ...'In this way, the user can avoid lengthy type-in to the shell,and still give \fIMH\fR commands safely. (Recall that some \fIMH\fRcommands invoke others, and that in all cases, the profile is read,meaning that aliases are disregarded beyond an initial command invocation).En
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -