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

9 lines
171 B
Fish

# temp creates a temporary file in your editor, with the given filetype.
function temp -a ft
set file "._temp.$ft"
touch $file
$EDITOR $file
rm $file
end