π 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.