Feature Request
Add aprender-shell uninstall command to cleanly remove the widget from shell config.
Current State
Users must manually edit ~/.zshrc to remove the widget block.
Proposed Command
aprender-shell uninstall [--zsh] [--bash] [--fish]
Behavior
- Detect shell config file (
~/.zshrc, ~/.bashrc, ~/.config/fish/config.fish)
- Find and remove the widget block (between marker comments)
- Optionally remove model file (
~/.aprender-shell.model)
- Print confirmation
Implementation
Add marker comments to widget output:
# >>> aprender-shell widget >>>
_aprender_suggest() {
...
}
# <<< aprender-shell widget <<<
Then uninstall can safely remove everything between markers.
$ aprender-shell uninstall
Removed widget from ~/.zshrc
Removed model file ~/.aprender-shell.model
Done. Restart your shell or run: source ~/.zshrc
Flags
--keep-model: Don't delete the trained model
--dry-run: Show what would be removed without doing it
Related
Feature Request
Add
aprender-shell uninstallcommand to cleanly remove the widget from shell config.Current State
Users must manually edit
~/.zshrcto remove the widget block.Proposed Command
Behavior
~/.zshrc,~/.bashrc,~/.config/fish/config.fish)~/.aprender-shell.model)Implementation
Add marker comments to widget output:
Then uninstall can safely remove everything between markers.
Flags
--keep-model: Don't delete the trained model--dry-run: Show what would be removed without doing itRelated
zsh-widget(ZSH widget: Add toggle, fix keybindings, add timeout for robustness #83),bash-widget(Feature request: Bash widget support #82)