From 85a43d7c298a7ddc5b1b03d9da52de1a0b6b4f48 Mon Sep 17 00:00:00 2001 From: PhatPhuckDave Date: Thu, 30 Oct 2025 19:16:39 +0100 Subject: [PATCH] Hallucinate up t and T in lazygit --- lazygit/config.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lazygit/config.yml b/lazygit/config.yml index 473933f..c6d5cf1 100644 --- a/lazygit/config.yml +++ b/lazygit/config.yml @@ -288,9 +288,15 @@ customCommands: context: "files" command: 'oco --yes' description: "Open commit options" + - key: "t" + context: "files" + command: "powershell -NoProfile -Command '$p=\"{{.SelectedPath}}\"; $e=[IO.Path]::GetExtension($p).TrimStart(\".\"); if([string]::IsNullOrEmpty($e)){ exit 0 }; $pattern=\"*.\" + $e; git lfs track \"$pattern\"'" + description: "LFS track by selected file extension" + - key: "T" + context: "files" + command: "powershell -NoProfile -Command '$p=\"{{.SelectedPath}}\"; $e=[IO.Path]::GetExtension($p).TrimStart(\".\"); if([string]::IsNullOrEmpty($e)){ exit 0 }; $pattern=\"*.\" + $e; git add -- \"$pattern\"; git commit -m (\"Track .\" + $e)'" + description: "Add and commit tracking for extension" services: "gitlab.neos.hr": "gitlab:gitlab.neos.hr" -os: - shell: "C:\\Program Files\\Git\\bin\\bash.exe"