Skip to content

ZSH

ZSH community configurations

zsh4humans

Installation

Installation creates these files/dirs:

  • ~/.zshenv
  • ~/.zshrc
  • ~/.cache/zsh4humans/
  • ~/.config/zshrc/

Upgrading:

z4h update

Set alternative config dir

$ cat .zshenv
export ZDOTDIR=~/.config/zsh

Start zsh with new config:

export ZDOTDIR=$(mktemp -d) && zsh

Colors

Zsh color codes

echo "$(tput setaf 1)~~> Red $(tput sgr0)"

Nvim zsh support