oh-my-zsh
potenciador de zsh con temas y plugins : https://ohmyz.sh/
install
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
más: https://www.howtoforge.com/tutorial/how-to-setup-zsh-and-oh-my-zsh-on-linux/
chsh -s $(which zsh)
: cambiar shell a mano si no lo hace automaticamente
config
~/.oh-my-zsh/tools/theme_chooser.sh
internal plugins
- dotenv: autoejeción scripts predefinidos en directorios (set-up variables)
- wrapper de autoenv:https://github.com/inishchith/autoenv
- no funciona el .leave
- alternativa zsh-autoenv
- zsh-autoenv https://github.com/Tarrasch/zsh-autoenv
- no es un plugin nativo de oh-my-zsh
- se integra desde .zshrc con un
source
- funciona solo para zsh
- ficheros .autoenv.zsh
- instrucciones interesantes:
autostash VAR=VALOR
→ setea nuevo valor, conservando el anterior y lo recupera al salir del directorio
- ubicación ficheros autorizados:
~/.local/share/autoenv_auth
- transfer: cli para https://transfer.sh
- zsh-syntax-highlighting:
apt-get install zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM}/plugins/zsh-syntax-highlighting
echo «source ${ZSH}/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh» » ${ZDOTDIR:-$HOME}/.zshrc
- añadir a la sección de plugins
- zsh-autosuggestions:
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
- añadir a la sección de plugins
- colored-man-pages
- coloriza
- copybuffer: CRTL+o para copiar texto seleccionado o linea cursor a portapapeles
- copyfile:
copyfile <FILE>
a portapapeles- problemas, requiere libteria adicional
- docker
- docker-compose
- git
- gitignore: cli a gitignore.io
zsh_reload:src
para recargar sesión → deprecated →omz reload
external plugins
-
cd ~/.oh-my-zsh/custom/plugins git clone https://github.com/tom-auger/cmdtime
- add to
~/.zshrc