diff --git a/.zinit-plugin b/.zinit-plugin new file mode 100644 index 0000000..b5686f5 --- /dev/null +++ b/.zinit-plugin @@ -0,0 +1,6 @@ +# Zinit plugin metadata +plugin_name="syui---airline.zsh" +main_file="syui---airline.zsh.plugin.zsh" +description="Modern powerline-style prompt with ai.moji support" +author="syui" +version="1.0.0" \ No newline at end of file diff --git a/README.md b/README.md index e69de29..e95c85f 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,52 @@ +# airline.zsh + +Modern powerline-style ZSH prompt with ai.moji support. + +## Features + +- Clean, fast powerline-style segments +- Git status information with color coding +- OS-specific icons and separators +- Vi mode indicators +- ai.moji font support with Unicode fallbacks +- 256-color theming system + +## Installation + +### With Zinit + +```zsh +zinit load syui/airline.zsh +``` + +### Manual + +```zsh +source ~/.zinit/plugins/syui---airline.zsh/airline.zsh +``` + +## Configuration + +The plugin automatically detects your OS and sets appropriate icons. It will use ai.moji font if available at: +- `~/.local/share/fonts/aimoji.ttf` +- `~/.fonts/aimoji.ttf` + +## Customization + +You can customize colors by modifying the `AIRLINE_THEME` associative array: + +```zsh +AIRLINE_THEME[dir_bg]=33 # Blue background for directory +AIRLINE_THEME[git_bg]=2 # Green background for git info +``` + +## ai.moji Integration + +Clone the ai.moji project for custom icons: +```bash +git clone https://git.syui.ai/ai/moji +``` + +## License + +MIT \ No newline at end of file diff --git a/syui---airline.zsh.plugin.zsh b/syui---airline.zsh.plugin.zsh new file mode 100644 index 0000000..dac6f4d --- /dev/null +++ b/syui---airline.zsh.plugin.zsh @@ -0,0 +1,7 @@ +#!/usr/bin/env zsh +# ================================ +# syui---airline.zsh plugin entry point +# ================================ + +# Source the main airline functionality +source "${0:A:h}/airline.zsh" \ No newline at end of file