mirror of https://github.com/mitchell/dotfiles.git
9 lines
163 B
Fish
9 lines
163 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
|