mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-02-21 16:39:38 +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…
x
Reference in New Issue
Block a user