From 3ab26a5d40a554606b6ca41442aa14e975900332 Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Fri, 29 Jun 2012 18:41:37 -0700 Subject: [PATCH] Updated funced documentation to reflect new behavior --- doc_src/funced.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc_src/funced.txt b/doc_src/funced.txt index 91087c405..1d6daf669 100644 --- a/doc_src/funced.txt +++ b/doc_src/funced.txt @@ -1,11 +1,13 @@ \section funced funced - edit a function interactively \subsection funced-synopsis Synopsis - funced [-e] NAME + funced [-e editor] NAME \subsection funced-description Description Use the funced command to interactively edit the definition of a -function. If there is no function with the name specified, a skeleton function is inserted, if a function exist, the definion will be shown on the command line. +function. If there is no function with the name specified, a skeleton function is inserted, if a function exist, the definion will be shown in your editor or on the command line. -- -e or --editor open function body inside external editor +By default, funced edits functions using the text editor in your $EDITOR variable, if set; otherwise it uses the built-in editor. + +- -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.