mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
prepping for PR
This commit is contained in:
parent
1353791277
commit
c5b9e7a29d
2 changed files with 1 additions and 41 deletions
40
CLAUDE.md
40
CLAUDE.md
|
|
@ -1,40 +0,0 @@
|
||||||
# CLAUDE.md - Oh My Zsh Framework
|
|
||||||
|
|
||||||
This is the Oh My Zsh repository - a popular open-source framework for managing Zsh shell configurations.
|
|
||||||
|
|
||||||
## Repository Overview
|
|
||||||
- **Purpose**: Framework for managing Zsh configurations with plugins and themes
|
|
||||||
- **Structure**: Contains plugins, themes, tools, and library files for Zsh customization
|
|
||||||
- **Main files**: Installation scripts, update tools, plugin system, theme system
|
|
||||||
|
|
||||||
## Key Commands and Scripts
|
|
||||||
- `omz update` - Update Oh My Zsh to latest version
|
|
||||||
- `$ZSH/tools/upgrade.sh` - Direct upgrade script for automation
|
|
||||||
- `uninstall_oh_my_zsh` - Remove Oh My Zsh completely
|
|
||||||
- `$ZSH/tools/install.sh` - Installation script
|
|
||||||
- `$ZSH/tools/uninstall.sh` - Uninstallation script
|
|
||||||
- DO NOT ever `git add`, `git rm` or `git commit` code. Allow the Claude user to always manually review git changes. `git mv` is permiitted and inform the developer.
|
|
||||||
- **Operating outside of local repository (with .git/ directoryr oot)**: Not permitted and any file or other operations require user approval and notification
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
- Main config file: `~/.zshrc`
|
|
||||||
- Installation directory: `~/.oh-my-zsh` (customizable via `$ZSH` variable)
|
|
||||||
- Custom directory: `~/.oh-my-zsh/custom/` for user customizations
|
|
||||||
|
|
||||||
## Development Workflow
|
|
||||||
- Plugins located in `plugins/` directory
|
|
||||||
- Themes located in `themes/` directory
|
|
||||||
- Library files in `lib/` directory
|
|
||||||
- Tools and utilities in `tools/` directory
|
|
||||||
- Custom plugins/themes go in `custom/` directory
|
|
||||||
- **New plugin**: `eternalhist` plugin added to `plugins/eternalhist/` for advanced persistent command history with multi-remote sync
|
|
||||||
|
|
||||||
## Testing
|
|
||||||
- No specific test commands found - check individual plugin READMEs
|
|
||||||
- Manual testing via shell usage and configuration changes
|
|
||||||
|
|
||||||
## Important Notes
|
|
||||||
- This is a shell framework, not a traditional application
|
|
||||||
- Changes require sourcing `~/.zshrc` or opening new terminal
|
|
||||||
- Plugin and theme changes require editing `~/.zshrc` configuration
|
|
||||||
- Uses Git for updates and version management
|
|
||||||
|
|
@ -58,7 +58,7 @@ fi
|
||||||
# docker version returns `Docker version 24.0.2, build cb74dfcd85`
|
# docker version returns `Docker version 24.0.2, build cb74dfcd85`
|
||||||
# with `s:,:` remove the comma after the version, and select third word of it
|
# with `s:,:` remove the comma after the version, and select third word of it
|
||||||
if zstyle -t ':omz:plugins:docker' legacy-completion || \
|
if zstyle -t ':omz:plugins:docker' legacy-completion || \
|
||||||
! is-at-least 23.0.0 ${${(s:,:z)"$(command docker --version 2>/dev/null)"}[3]}; then
|
! is-at-least 23.0.0 ${${(s:,:z)"$(command docker --version)"}[3]}; then
|
||||||
command cp "${0:h}/completions/_docker" "$ZSH_CACHE_DIR/completions/_docker"
|
command cp "${0:h}/completions/_docker" "$ZSH_CACHE_DIR/completions/_docker"
|
||||||
else
|
else
|
||||||
command docker completion zsh | tee "$ZSH_CACHE_DIR/completions/_docker" > /dev/null
|
command docker completion zsh | tee "$ZSH_CACHE_DIR/completions/_docker" > /dev/null
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue