Add boilerplate definition when using funced on undefined function

darcs-hash:20070921142954-75c98-752f389dfe4022ea3e72092bb717a60314408d41.gz
This commit is contained in:
liljencrantz 2007-09-22 00:29:54 +10:00
parent 624878d35f
commit 8c4770a26c

View file

@ -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