mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-15 23:22:53 +08: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
@ -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…
x
Reference in New Issue
Block a user