mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-06-19 20:55:34 +00:00
9 lines
171 B
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
|