summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dotfiles/fish/conf.d/editor.fish4
1 files changed, 3 insertions, 1 deletions
diff --git a/dotfiles/fish/conf.d/editor.fish b/dotfiles/fish/conf.d/editor.fish
index 59c91df..4982ae7 100644
--- a/dotfiles/fish/conf.d/editor.fish
+++ b/dotfiles/fish/conf.d/editor.fish
@@ -15,8 +15,10 @@ function editor::helix::open_with_lock
end
end
touch $lock
+ function cleanup_lock --on-process-exit hx
+ rm -f $lock
+ end
hx $file $argv[2..-1]
- rm $lock
end
function editor::helix::edit::remote