diff options
author | liljencrantz <liljencrantz@gmail.com> | 2007-09-22 00:29:54 +1000 |
---|---|---|
committer | liljencrantz <liljencrantz@gmail.com> | 2007-09-22 00:29:54 +1000 |
commit | 8c4770a26c85666ca02d35b305df87aef145822b (patch) | |
tree | e14ffbbb23df3796d855a14435c79e443942d207 /share/functions/funced.fish | |
parent | 624878d35fa8a4cdc0ee44cdeb6057e1c8bcbefb (diff) |
Add boilerplate definition when using funced on undefined function
darcs-hash:20070921142954-75c98-752f389dfe4022ea3e72092bb717a60314408d41.gz
Diffstat (limited to 'share/functions/funced.fish')
-rw-r--r-- | share/functions/funced.fish | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/share/functions/funced.fish b/share/functions/funced.fish index 3e58548d..dca73d70 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 |