đ Quick Start
Install shui and print your first styled message in seconds.
git clone https://github.com/kud/shui ~/.shui
source ~/.shui/shui.zsh
shui message success "Deployment complete"
shui message error "Build failed"
shui message warning "Deprecated flag used"
shui message info "Running in dry-run mode"
shui message muted "Skipped (already up-to-date)"â
Deployment complete
â Build failed
â ī¸ Deprecated flag used
âšī¸ Running in dry-run mode
Skipped (already up-to-date)đĨ Importing in a script
Source shui at the top of any Zsh script:
#!/usr/bin/env zsh
source "${0:A:h}/lib/shui/shui.zsh"${0:A:h} is the Zsh idiom for the absolute directory of the current script â
the path resolves correctly regardless of where you call the script from.
To select a theme before loading:
SHUI_THEME=minimal SHUI_ICONS=emoji source shui.zshđĻ Installation
Manually
git clone https://github.com/kud/shui ~/.shuiAs a project submodule (recommended for scripts)
git submodule add https://github.com/kud/shui lib/shuiAntidote
Add kud/shui to your .zsh_plugins.txt, then antidote load.
Zinit
zinit light kud/shuiOh My Zsh
git clone https://github.com/kud/shui ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/shuiThen add shui to the plugins array in ~/.zshrc.
Zplug
zplug "kud/shui"â Requirements
- Zsh 5.0+
- A Nerd Font for the
defaultandminimalthemes â or useSHUI_ICONS=emojiorSHUI_ICONS=none.