Hallucinate up t and T in lazygit
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user