mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-25 12:23:09 +00:00
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:
parent
a4b17b162c
commit
616d848fac
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue