Instalar Zsh y Oh My Zsh en Fedora
=============================sudo dnf install zsh
Configurar Zsh como shell predeterminado:
chsh -s $(which zsh)
Verificar tu shell predeterminado:
echo $SHELL
Instalar Oh My Zsh:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Instalar las sugerencias automáticas:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
Instalar el resaltado de sintaxis:
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Instalar la lista interactiva de sugerencias:
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autocomplete
Abrir el archivo de configuración de Zsh:
vim ~/.zshrc
Busca la línea 73 que dice plugins=(git) y añádele los siguientes complementos para mejorar el autocompletado y el resaltado de sintaxis:
:73 plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-autocomplete)
Aplicar los cambios:
source ~/.zshrc
---------------------------------------------------------------------------------------------------------------
Editar el archivo:
vim $HOME/.oh-my-zsh/themes/robbyrussell.zsh-theme
PROMPT="%(?:%{$fg_bold[green]%}%1{➜%} :%{$fg_bold[red]%}%1{➜%} )%{$fg[cyan]%}%c%{$reset_color%}"
PROMPT+=' $(git_prompt_info)'
Para Cambiar el tema:
Abrir el archivo de configuración de Zsh:
vim ~/.zshrc
Busca la línea que comienza con ZSH_THEME y configúrala así:
ZSH_THEME="robbyrussell"
Ruta de los themes de Oh-my-zsh:
$HOME/.oh-my-zsh/themes
--------------------------------------------------------------------------------------------------------------------------------
Configurar Zsh para quitar el subrayado a sudo, ls, etc
Editar ~/.zshrc y agregar al final:
vim ~/.zshrc
ZSH_HIGHLIGHT_STYLES[precommand]='fg=#26A269,bold'
ZSH_HIGHLIGHT_STYLES[path]='none'
Aplicar los cambios:
source ~/.zshrc