add zinit

This commit is contained in:
2025-06-11 07:53:31 +09:00
parent 359cabaf59
commit 4e121d7501
3 changed files with 65 additions and 0 deletions

6
.zinit-plugin Normal file
View File

@ -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"

View File

@ -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

View File

@ -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"