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 revisionNext revisionBoth sides next revision | ||
playground:vps_-_plan9front_-_fn_reply_and_prompt [2022/06/24 23:02] – [reply with selected text] hc9 | playground:vps_-_plan9front_-_fn_reply_and_prompt [2022/06/26 05:00] – [prompt] hc9 | ||
---|---|---|---|
Line 7: | Line 7: | ||
^# | ^# | ||
- | |1|fn vim { sam $* }| | + | |**1**|'' |
- | |2| [blank] | + | |**2**|//Grep, but force listing of filename: |
- | |3| [blank] | + | |// |
+ | |**3**|//Tree enumerator (simple " | ||
+ | |// | ||
+ | |||
+ | **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% | ||
+ | </ | ||
===== reply with selected text ===== | ===== reply with selected text ===== | ||
Line 44: | Line 68: | ||
|2/|:::|⇐ An Email messages is here.| | |2/|:::|⇐ An Email messages is here.| | ||
|1/| | |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 ===== | ===== prompt ===== | ||
+ | |||
+ | < | ||
+ | cpu% cp $home/ | ||
+ | </ | ||
^# | ^# | ||
- | |**1**|To set your prompt in rc to reflect your current directory add this to your profile.| | + | |**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 -'' | + | |**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% | ||
+ | </ | ||