Repository navigation
fix(powershell): errores de alias git y tema OMP corrupto en plantillas - #13
Merged
Merged
Conversation
…error - Replace -ErrorAction SilentlyContinue on native git config calls with 2>$null (git is not a cmdlet; the parameter was passed as a literal argument causing "wrong number of arguments, should be from 1 to 2") - Use a real alias map (st/co/br/ci/df) instead of self-referential alias.<name>=<name> entries - Merge prompt sections 9+10 into one: Oh-My-Posh (catppuccin-mocha) primary, Starship fallback via elseif - Replace broken TOML-as-.omp.json theme with valid OMP JSON schema v2 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problema
El despliegue de las plantillas de PowerShell reproducía 3 fallos en cada arranque de pwsh:
error: wrong number of arguments, should be from 1 to 2— el perfil pasaba-ErrorAction SilentlyContinuea llamadas nativasgit config --get. Git no es un cmdlet: el parámetro le llegaba como argumento literal extra. Además el bucle de alias generaba alias auto-referenciales (alias.st=st) que rompíangit st/co/br/ci/df.CONFIG PARSE ERRORen el prompt —themes/catppuccin-mocha.omp.jsoncontenía un preset en formato TOML, no JSON de Oh-My-Posh.Cambios
templates/powershell/Copilot.DevProfile.ps1st/co/br/ci/df) y redirección2>$nullen llamadas nativas a git (con comentario explicativo).elseif.templates/powershell/themes/catppuccin-mocha.omp.json(nuevo)Validación
Parser::ParseFile→ 0 errores de sintaxis.ConvertFrom-Json→ OK (version 2, 2 blocks).-ErrorActionen llamadas nativas a git.git stfuncional.Notas
.config/starship.toml(ya era correcto en el repo).Import-Clixmleran del módulo Terminal-Icons (carrera de concurrencia), parcheado localmente fuera de este repo.Co-authored-by: Copilot App 223556219+Copilot@users.noreply.github.com