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.
This commit is contained in:
Fabian Homborg 2015-07-17 11:31:45 +02:00 committed by ridiculousfish
parent a4b17b162c
commit 616d848fac

View file

@ -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