659
edits
Carandraug (talk | contribs) m (small grammar fix) |
Carandraug (talk | contribs) (→Tiny helper functions: use new Templates) |
||
Line 1: | Line 1: | ||
=Tiny helper functions= | =Tiny helper functions= | ||
This is a list of tiny helper functions (the equivalent of e.g., shell aliases), the kind one would have on its | This is a list of tiny helper functions (the equivalent of e.g., shell aliases), the kind one would have on its {{Path|.octaverc}} file. | ||
== replace help with man == | == replace help with man == | ||
If you use octave too much, you'll find yourself trying to use | If you use octave too much, you'll find yourself trying to use {{Codeline|help}} instead of {{Codeline|man}} on bash. This function will fix that so you can use {{Codeline|man}} in your octave instance (you can also do the opposite, create a {{Codeline|help}} alias in bash but {{Codeline|man}} has less characters). | ||
{{Code|alias to help|<pre> | |||
function man (name) | function man (name) | ||
help (char (name)) | help (char (name)) | ||
endfunction | endfunction</pre>}} | ||
=C++= | =C++= |