mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Add boilerplate definition when using funced on undefined function
darcs-hash:20070921142954-75c98-752f389dfe4022ea3e72092bb717a60314408d41.gz
This commit is contained in:
parent
624878d35f
commit
8c4770a26c
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue