User Tools

Site Tools


playground:vps_-_plan9front_-_fn_reply_and_prompt

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
playground:vps_-_plan9front_-_fn_reply_and_prompt [2022/06/26 05:19] – [function (fn)] hc9playground:vps_-_plan9front_-_fn_reply_and_prompt [2022/06/26 05:26] – [function (fn)] hc9
Line 35: Line 35:
 cpu% cpu%
 </code> </code>
 +
 +=== whatis vim: ===
  
 <code> <code>
Line 51: Line 53:
 </file> </file>
  
-|1|select text to include in reply with button 1| +|1.|select text to include in reply with button 1| 
-|2|type **''|ireply''** in message tag and run with button 2| +|2.|type **''|ireply''** in message tag and run with button 2| 
-|3|run **''reply''** in message tag with button 2| +|3.|run **''reply''** in message tag with button 2| 
-|4|use the button 1,3 chord to paste text into reply| +|4.|use the button 1,3 chord to paste text into reply| 
-|5|remove Include: line from message and type your reply.|+|5.|remove Include: line from message and type your reply.|
  
 Start acme to access the mbox. Start acme to access the mbox.
Line 97: Line 99:
  
 ^#^Examples^ ^#^Examples^
-|**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.//
-|//a//|''<nowiki>fn cd { builtin cd $* && prompt=(`{pwd}^% '' ) }</nowiki>''+|//a.//|''<nowiki>fn cd { builtin cd $* && prompt=(`{pwd}^% '' ) }</nowiki>''
-|**2**|//If you make frequent use of cpu's -''h'' and ''-u'' arguments, this variant keeps track of the host you are connected to, and as which user://| +|**2.**|//If you make frequent use of cpu's -''h'' and ''-u'' arguments, this variant keeps track of the host you are connected to, and as which user://| 
-|//a//|''<nowiki>prompt = (`{cat /dev/user}^@^`{cat /dev/sysname}^'% '  ' ')</nowiki>''+|//a.//|''<nowiki>prompt = (`{cat /dev/user}^@^`{cat /dev/sysname}^'% '  ' ')</nowiki>''
-|//b//|''<nowiki>fn `{echo $prompt(1) | tr -d ' '} { $* }</nowiki>''|+|//b.//|''<nowiki>fn `{echo $prompt(1) | tr -d ' '} { $* }</nowiki>''|
  
 **Example #1:** **Example #1:**
Line 124: Line 126:
 cpu% cpu%
 </code> </code>
 +
 +=== whatis cd: ===
  
 <code> <code>