summaryrefslogtreecommitdiff
path: root/fish
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-12 22:08:18 +0200
committerPaul Buetow <paul@buetow.org>2026-03-12 22:08:18 +0200
commitb2bf3d5140a11b5d7c820ead311e9807812e57f8 (patch)
treed36df3dcf4a513e6575810f195b141d2e8f48f93 /fish
parent401de3ae30ad87b42d79381999b2b28202157091 (diff)
parent12af0aca200339b053de95092de25a8f383c97f9 (diff)
Merge branch 'master' of codeberg.org:snonux/dotfiles
Diffstat (limited to 'fish')
-rw-r--r--fish/conf.d/editor.fish12
1 files changed, 12 insertions, 0 deletions
diff --git a/fish/conf.d/editor.fish b/fish/conf.d/editor.fish
index bda4644..309cb1e 100644
--- a/fish/conf.d/editor.fish
+++ b/fish/conf.d/editor.fish
@@ -36,6 +36,18 @@ function editor::helix::edit::remote
hx $local_path
end
+function hxdiff
+ set tmp (mktemp /tmp/hxdiff_XXXXXX.diff)
+ diff -u -r $argv >$tmp
+ hx $tmp
+ rm -f $tmp
+
+end
+
+function tfdiff
+ hxdiff --exclude=.claude --exclude=.cursor --exclude='*.tfplan' --exclude=modules.json --exclude=.terraform --exclude=.terraform.lock.hcl $argv
+end
+
abbr -a lhx 'editor::helix::open_with_lock'
abbr -a hxl 'editor::helix::open_with_lock'
abbr -a hxlf 'editor::helix::open_with_lock::force'