2008-01-18 23:54:13 +08:00
|
|
|
\section funced funced - edit a function interactively
|
|
|
|
|
|
|
|
\subsection funced-synopsis Synopsis
|
2014-08-01 10:37:32 +08:00
|
|
|
\fish{syn}
|
|
|
|
funced [OPTIONS] NAME
|
|
|
|
\endfish
|
2008-01-18 23:54:13 +08:00
|
|
|
|
|
|
|
\subsection funced-description Description
|
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
`funced` provides an interface to edit the definition of the function
|
|
|
|
`NAME`.
|
2012-06-27 11:37:48 +08:00
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
If the `$EDITOR` environment variable is set, it will be used as the program
|
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 15:56:01 +08:00
|
|
|
to edit the function. Otherwise, a built-in editor will be used.
|
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
If there is no function called `NAME` a new function will be created with
|
Help cleanup
Large list of changes, including formatting and typos for most commands.
More substantive changes have been made to alias, bind, block, break,
builtin, case, cd, commandline, count, else, emit, fish_config, funced,
function, functions, history, math, mimedb, nextd, not, popd, prevd,
pushd, pwd, random, read, set, set_color, switch, test, trap, type,
ulimit, umask, and while.
2013-05-12 15:56:01 +08:00
|
|
|
the specified name
|
2012-06-30 09:41:37 +08:00
|
|
|
|
2014-08-01 10:37:32 +08:00
|
|
|
- `-e command` or `--editor command` Open the function
|
2013-04-22 09:13:18 +08:00
|
|
|
body inside the text editor given by the command (for example, "vi"). The
|
|
|
|
command 'fish' will use the built-in editor.
|
2014-08-01 10:37:32 +08:00
|
|
|
- `-i` or `--interactive` Open function body in the
|
2013-04-22 09:13:18 +08:00
|
|
|
built-in editor.
|