mirror of
https://github.com/mitchell/dotfiles.git
synced 2025-12-17 12:27:22 +00:00
Refactor config.fish to use functions moved to functions folder
This commit is contained in:
parent
b5e93105d6
commit
47a88f93d1
10 changed files with 125 additions and 121 deletions
8
.config/fish/functions/temp.fish
Normal file
8
.config/fish/functions/temp.fish
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
# 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue