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"