mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-04 04:29:55 +08: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
@ -81,7 +81,7 @@ function funced --description 'Edit function definition'
|
|||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
|
|
||||||
set tmpname (mktemp -t fish_funced.XXXXXXXXXX)
|
set tmpname (mktemp -t fish_funced.XXXXXXXXXX.fish)
|
||||||
|
|
||||||
if functions -q -- $funcname
|
if functions -q -- $funcname
|
||||||
functions -- $funcname > $tmpname
|
functions -- $funcname > $tmpname
|
||||||
|
Loading…
x
Reference in New Issue
Block a user