NotasNotas
  • Notas

    • ADB
    • Bookmarks, marcadores, favoritos,...
    • Desktop files (linux)
    • Docker
    • Docker Compose
    • Flutter
    • Flutter Code Snippets
    • Flutter Links
    • Flutter Packages
    • FSTAB
    • Git
    • Github Emojis
    • GPG
    • Grub
    • Lego
    • Linux
    • MACOS
    • Oh My ZSH!
    • Miscelánea
    • Raspberry Pi
    • PSP
    • PSVITA
    • React Native
    • React Native Links
    • React Native Packages
    • TP-Link Archer T2U Plus
    • TP-Link Archer T3U Plus
    • Visual Studio Code
    • Windows

Oh My ZSH!

Instalación

Debemos comprobar que tenemos una versión de ZSH igual o superior a la 5.0.8

zsh --version

Para instalar se utiliza el siguiente script

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Por último, es necesario establecer ZSH como el BASH por defecto para el usuario

sudo chsh -s /usr/bin/zsh $USER && echo $SHELL

More info

Configuración utilizada

Archivo de ejemplo .zshrc, para que el tema AGNOSTER se visualice correctamente, es necesario utilizar una tipografía distinta, como Fira Code y establecerla por defecto en el terminal

Enlace para descargar la fuente Fira Code

export ZSH="/Users/jaidis/.oh-my-zsh"

ZSH_THEME="agnoster"

plugins=(flutter git)

source $ZSH/oh-my-zsh.sh

# ANDROID PATH
export ANDROID_HOME=$HOME/Library/Android/sdk
export PATH=$PATH:$ANDROID_HOME/emulator
export PATH=$PATH:$ANDROID_HOME/tools
export PATH=$PATH:$ANDROID_HOME/tools/bin
export PATH=$PATH:$ANDROID_HOME/platform-tools
# FLUTTER PATH
export FLUTTER_HOME=$HOME/Library/FlutterSDK
export PATH=$PATH:$FLUTTER_HOME/bin

export MANPAGER='sh -c "col -bx | batcat -l man -p"'
export MANROFFOPT="-c";

Plugins

awesome-zsh-plugins

Repo que contiene ZSH frameworks, plugins, tutoriales y temas. El repo está integrado dentro de las listas 'Awesome' 😎

zsh-syntax-highlighting

Este plugin permite resaltar la sintaxis (como echo) en el terminal

Para instarlar dicho plugin es necesario clonar su repo y habilitarlo en el fichero .zshrc. Nota: este plugin tiene que ser SIEMPRE el último plugin

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
plugins=( ... zsh-syntax-highlighting)

Temas

  • powerlevel10k
Actualizado el:: 28/5/25, 11:49
Contributors: Manuel Muñoz
Prev
MACOS
Next
Miscelánea