- Publicado en
Script para que cuando teclee ohmyzsh se ejecute le script almacenado en /usr/local/bin ohmyzsh con chmod +x
```
!/bin/zsh
1. Instalar oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
2. Cambiar el tema
sed -i 's|ZSH_THEME="robbyrussell"|ZSH_THEME="agnoster"|g' ~/.zshrc
3. Sobreescribir prompt_context para mostrar FQDN
cat >> ~/.zshrc << 'EOF'
Agnoster: mostrar FQDN en lugar de hostname corto
prompt_context() { if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then prompt_segment black default "%(!.%{%F{yellow}%}.)%n@%M" fi } EOF
4. Aplicar cambios
exec zsh
`