From 616d848faccb75e5301e105aabc86c8681814812 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Fri, 17 Jul 2015 11:31:45 +0200 Subject: [PATCH] Add .fish suffix to funced's tempfile name This allows editors (like emacs) to pick up on the fact that it's a fish script. --- share/functions/funced.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/funced.fish b/share/functions/funced.fish index 88688b137..e9248f879 100644 --- a/share/functions/funced.fish +++ b/share/functions/funced.fish @@ -81,7 +81,7 @@ function funced --description 'Edit function definition' return 0 end - set tmpname (mktemp -t fish_funced.XXXXXXXXXX) + set tmpname (mktemp -t fish_funced.XXXXXXXXXX.fish) if functions -q -- $funcname functions -- $funcname > $tmpname