Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MenkeTechnologies/zsh-cpan-completion
https://github.com/MenkeTechnologies/zsh-cpan-completion
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/MenkeTechnologies/zsh-cpan-completion
- Owner: MenkeTechnologies
- License: mit
- Created: 2020-09-03T22:56:11.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-03T17:17:50.000Z (over 2 years ago)
- Last Synced: 2024-01-25T17:35:53.179Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 18.6 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: license.md
Lists
- awesome-zsh-plugins - cpan - Adds `cpan install word<tab>` and `cpanm install <tab>` to complete remote CPAN package names. (Completions / ZSH on Windows)
- fucking-awesome-zsh-plugins - cpan - Adds `cpan install word<tab>` and `cpanm install <tab>` to complete remote CPAN package names. (Completions / ZSH on Windows)
- awesome-zsh-plugins - cpan - Adds `cpan install word<tab>` and `cpanm install <tab>` to complete remote CPAN package names. (Completions / ZSH on Windows)
README
# zsh-cpan-completion
![zsh-cpan-completion screenshot](http://menketechnologies.github.io/img/zsh-cpan-completion.png?raw=true)
This plugin has all functionality of OMZ cpanm completion but it also allows `cpan install word` and `cpanm install ` to complete remote CPAN package from output of `perl -MCPAN -e 'CPAN::Shell->m("/$package/")'`. The word before tab completion must be >= 2 characters in length to reduce crashing of zsh from too many packages.
ZPWR_CPAN_MIN_PREFIX controls the min length of prefix.## Install for Zinit
> `~/.zshrc`
```sh
source "$HOME/.zinit/bin/zinit.zsh"
zinit ice lucid nocompile
zinit load MenkeTechnologies/zsh-cpan-completion
```## Install for Oh My Zsh
```sh
cd "$HOME/.oh-my-zsh/custom/plugins" && git clone https://github.com/MenkeTechnologies/zsh-cpan-completion.git
```Add `zsh-cpan-completion` to plugins array in ~/.zshrc
## General Install
```sh
git clone https://github.com/MenkeTechnologies/zsh-cpan-completion.git
```source zsh-cpan-completion.plugin.zsh or add code to zshrc or any startup script