mirror of
https://github.com/marcogll/mac_vntySet.git
synced 2026-01-13 13:25:15 +00:00
feat: parameterize Terminal font size configuration and update heredoc marker
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user