dotfiles/.config/fish/functions/temp.fish

9 lines
171 B
Fish
Raw Normal View History

# temp creates a temporary file in your editor, with the given filetype.
function temp -a ft
2020-08-15 23:20:08 +00:00
set file "._temp.$ft"
2020-08-15 23:20:08 +00:00
touch $file
$EDITOR $file
rm $file
end