mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-25 08:56:43 +08:00
funced: suggest saving functions when an editor is used
This commit is contained in:
parent
8dd4c67db1
commit
ff8f26e65a
|
@ -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 New Issue
Block a user