feat: parameterize Terminal font size configuration and update heredoc marker

This commit is contained in:
Marco Gallegos
2025-11-21 07:59:26 -06:00
parent 59b59e0c87
commit 1502e4c2dc
2 changed files with 9 additions and 6 deletions

View File

@@ -8,7 +8,7 @@ Automatiza en pocos minutos un entorno de desarrollo moderno para macOS. VanityO
- Homebrew configurado para Apple Silicon o Intel.
- Zsh + Oh My Zsh con plugins (`zsh-autosuggestions`, `zsh-syntax-highlighting`, `zsh-completions`).
- Oh My Posh (tema Catppuccin) + fuente Meslo Nerd Font.
- Node.js, Python, Git, direnv y herramientas base de terminal (incluyendo ZeroTier CLI y Speedtest CLI).
7- Node.js, Python, Git, direnv y herramientas base de terminal (incluyendo ZeroTier CLI y Speedtest CLI).
- yt-dlp + ffmpeg para descargas directas desde YouTube (video y audio).
- Docker CLI, Lazydocker y despliegue automático de Portainer CE (con Docker Desktop preinstalado y arrancado).
- Ajusta automáticamente la fuente de la app Terminal a Meslo Nerd Font para que Oh My Posh muestre los iconos correctamente.

View File

@@ -84,18 +84,21 @@ configure_terminal_font() {
return
fi
local font_name="MesloLGS Nerd Font"
local font_name font_size
font_name="MesloLGS Nerd Font"
font_size=14
echo "Configurando Terminal para usar la fuente $font_name"
/usr/bin/osascript <<EOF >/dev/null 2>&1
/usr/bin/osascript <<OSA >/dev/null 2>&1
tell application "Terminal"
try
set font name of default settings to "$font_name"
set font size of default settings to 14
set font size of default settings to "$font_size"
set font name of startup settings to "$font_name"
set font size of startup settings to 14
set font size of startup settings to "$font_size"
end try
end tell
EOF
OSA
}
install_oh_my_zsh() {