aboutsummaryrefslogtreecommitdiffhomepage
path: root/doc_src/funced.txt
blob: 143efba430a1e2cd276df3e944c95eecb3d7a90c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
\section funced funced - edit a function interactively

\subsection funced-synopsis Synopsis
\fish{synopsis}
funced [OPTIONS] NAME
\endfish

\subsection funced-description Description

`funced` provides an interface to edit the definition of the function `NAME`.

If the `$EDITOR` environment variable is set, it will be used as the program to edit the function. Otherwise, a built-in editor will be used.

If there is no function called `NAME` a new function will be created with the specified name

- `-e command` or `--editor command` Open the function body inside the text editor given by the command (for example, "vi"). The command 'fish' will use the built-in editor.

- `-i` or `--interactive` Open function body in the built-in editor.