playground:vps_-_plan9front_-_fn_reply_and_prompt
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
playground:vps_-_plan9front_-_fn_reply_and_prompt [2022/06/26 05:19] – [function (fn)] hc9 | playground:vps_-_plan9front_-_fn_reply_and_prompt [2022/06/26 05:46] (current) – removed hc9 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== function, reply and prompt ====== | ||
- | |||
- | |x| :!: THIS IS A DRAFT| | ||
- | |x| Tutorial [ ] Guide [x]| | ||
- | |||
- | ===== function (fn) ===== | ||
- | |||
- | ^# | ||
- | |**1.**|...[[: | ||
- | |// | ||
- | |**2.**|// | ||
- | |// | ||
- | |**3.**|// | ||
- | |// | ||
- | |||
- | **Example #1:** | ||
- | |||
- | < | ||
- | cpu% lc profile.edit | ||
- | profile.edit | ||
- | cpu% sam -d profile.edit | ||
- | -. profile.edit | ||
- | /fn | ||
- | fn | ||
- | fn term%{ $* } | ||
- | /fn | ||
- | fn | ||
- | fn cpu%{ $* } | ||
- | a | ||
- | fn vim { sam $* } | ||
- | . | ||
- | w | ||
- | profile.edit: | ||
- | q | ||
- | cpu% | ||
- | </ | ||
- | |||
- | < | ||
- | cpu% whatis vim | ||
- | fn vim { | ||
- | sam $* | ||
- | } | ||
- | cpu% | ||
- | </ | ||
- | |||
- | ===== reply with selected text ===== | ||
- | |||
- | <file config $home/ | ||
- | #!/bin/rc | ||
- | awk '{ print "> " $0}' | ||
- | </ | ||
- | |||
- | |1|select text to include in reply with button 1| | ||
- | |2|type **'' | ||
- | |3|run **'' | ||
- | |4|use the button 1,3 chord to paste text into reply| | ||
- | |5|remove Include: line from message and type your reply.| | ||
- | |||
- | Start acme to access the mbox. | ||
- | |||
- | < | ||
- | % acme | ||
- | </ | ||
- | |||
- | ^Newcol Kill Putall Dump Exit^^^ | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol**|::: | ||
- | |||
- | ^Newcol Kill Putall Dump Exit^^^ | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol**|::: | ||
- | |||
- | ^Newcol Kill Putall Dump Exit^^^ | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail**|::: | ||
- | |||
- | ^Newcol Kill Putall Dump Exit^^^ | ||
- | |**New Cut Paste Snarf Sort Zerox Delcol Mail**| | ||
- | |**/// | ||
- | |2/|:::|⇐ An Email messages is here.| | ||
- | |1/| | ||
- | |**/// | ||
- | |From: ne1nb00k@9p.sdf.org| | ||
- | |To: | ||
- | |Date: Fri Jun 24 23:06:59 +0000 2022| | ||
- | |Subject: practice reply| | ||
- | |[blank]| | ||
- | |That was some good neinbook!| | ||
- | |[blank]| | ||
- | |> Some text to reply to|:::|⇐ This is the text highlighting example area.| | ||
- | |[blank]| | ||
- | |Other text| | ||
- | |Other text| | ||
- | |||
- | ===== prompt ===== | ||
- | |||
- | < | ||
- | cpu% cp $home/ | ||
- | </ | ||
- | |||
- | ^# | ||
- | |**1**|//To set your prompt in rc to reflect your current directory add this to your profile.//| | ||
- | |// | ||
- | |**2**|//If you make frequent use of cpu's -'' | ||
- | |// | ||
- | |// | ||
- | |||
- | **Example #1:** | ||
- | |||
- | < | ||
- | cpu% lc profile.edit | ||
- | profile.edit | ||
- | cpu% sam -d profile.edit | ||
- | -. profile.edit | ||
- | /fn | ||
- | fn | ||
- | fn term%{ $* } | ||
- | /fn | ||
- | fn | ||
- | fn cpu%{ $* } | ||
- | s/cpu%{ \$\*/cd { builtin cd $* \& | ||
- | . | ||
- | fn cd { builtin cd $* && prompt=(`{pwd}^% '' | ||
- | w | ||
- | profile.edit: | ||
- | q | ||
- | cpu% | ||
- | </ | ||
- | |||
- | < | ||
- | cpu% whatis cd | ||
- | fn cd { | ||
- | builtin cd $* && prompt=(`{ | ||
- | pwd | ||
- | }^% '' | ||
- | } | ||
- | cpu% | ||
- | </ | ||
playground/vps_-_plan9front_-_fn_reply_and_prompt.1656220756.txt.gz · Last modified: 2022/06/26 05:19 by hc9