From ff8f26e65ae92891dfd953fa527502455cf038ff Mon Sep 17 00:00:00 2001 From: David Adam Date: Tue, 10 Aug 2021 21:47:15 +0800 Subject: [PATCH] funced: suggest saving functions when an editor is used --- share/functions/funced.fish | 3 +++ 1 file changed, 3 insertions(+) diff --git a/share/functions/funced.fish b/share/functions/funced.fish index ca17291f3..c92332b15 100644 --- a/share/functions/funced.fish +++ b/share/functions/funced.fish @@ -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