From 8c4770a26c85666ca02d35b305df87aef145822b Mon Sep 17 00:00:00 2001 From: liljencrantz Date: Sat, 22 Sep 2007 00:29:54 +1000 Subject: [PATCH] Add boilerplate definition when using funced on undefined function darcs-hash:20070921142954-75c98-752f389dfe4022ea3e72092bb717a60314408d41.gz --- share/functions/funced.fish | 2 ++ 1 file changed, 2 insertions(+) diff --git a/share/functions/funced.fish b/share/functions/funced.fish index 3e58548de..dca73d702 100644 --- a/share/functions/funced.fish +++ b/share/functions/funced.fish @@ -19,6 +19,8 @@ function funced --description "Edit function definition" set -l IFS if functions -q $argv set init (functions $argv | fish_indent --no-indent) + else + set init function $argv\nend end