mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 04:17:22 +00:00
8 lines
171 B
Fish
8 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
|