mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 21:33:09 +00:00
funced: suggest saving functions when an editor is used
This commit is contained in:
parent
8dd4c67db1
commit
ff8f26e65a
1 changed files with 3 additions and 0 deletions
|
@ -166,6 +166,9 @@ function funced --description 'Edit function definition'
|
|||
end
|
||||
else if set -q _flag_save
|
||||
funcsave $funcname
|
||||
else
|
||||
printf (_ "Run funcsave %s to save this function to the configuration directory.") $funcname
|
||||
echo
|
||||
end
|
||||
end
|
||||
break
|
||||
|
|
Loading…
Reference in a new issue