mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-12 14:51:16 -03: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:
committed by
ridiculousfish
parent
a4b17b162c
commit
616d848fac
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user