Skip to content

Instantly share code, notes, and snippets.

@marcozink
Forked from eloyvega/README.md
Created January 22, 2020 03:27
Show Gist options
  • Save marcozink/9621eb1423f1ae2b45c952a363b2c6f5 to your computer and use it in GitHub Desktop.
Save marcozink/9621eb1423f1ae2b45c952a363b2c6f5 to your computer and use it in GitHub Desktop.
Terminal config

Mi configuración de terminal

App

Instalar iTerm2 disponible en este link

Shell

Instalar oh-my-zsh con el siguiente comando:

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

Configurar Zsh

Modifica el archivo ~/.zshrc para personalizar tu terminal.

Configura el tema con la variable ZSH_THEME. Ve los temas disponibles aquí

Powerline

Yo ocupo el tema Powerlevel9k, que se instala facilmente con el siguiente comando:

git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

Modifica la variable ZSH_THEME en archivo ~/.zshrc de la siguiente forma:

ZSH_THEME="powerlevel9k/powerlevel9k"

Y agrega las siguientes variables para configurar el tema. A mi me gusta mostrar el directorio actual y la información de Git del lado izquierdo:

POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir vcs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=()

Powerline9k requiere de fuentes especiales para funcionar correctamente. Instala las fuentes en Mac siguiendo las instrucciones en este repo

Plugins

Para tener auto sugerencias y resaltado de sintaxis ejecuta los siguientes comandos:

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

Y modifica la variable plugins en el archivo ~/.zshrc:

plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment