Tips and tricks: Difference between revisions

Jump to navigation Jump to search
104 bytes added ,  7 December 2011
→‎Tiny helper functions: use new Templates
m (small grammar fix)
(→‎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 ''.octaverc'' file.
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 ''help'' instead of ''man'' on bash. This will allow you to use ''man'' in your octave instance (you can also create a ''help'' alias for bash but ''man'' has less characters than ''help'').
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++=

Navigation menu