Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MenkeTechnologies/zsh-cargo-completion
https://github.com/MenkeTechnologies/zsh-cargo-completion
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/MenkeTechnologies/zsh-cargo-completion
- Owner: MenkeTechnologies
- License: mit
- Created: 2020-12-24T15:50:49.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-06T18:43:48.000Z (over 1 year ago)
- Last Synced: 2024-01-25T17:35:51.528Z (4 months ago)
- Language: Shell
- Homepage:
- Size: 216 KB
- Stars: 25
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.md
Lists
- awesome-zsh-plugins - cargo - All the functionality of the original oh-my-zsh cargo completion, with additional support for remote crates via `cargo search` in `cargo add`. (Completions / ZSH on Windows)
- fucking-awesome-zsh-plugins - cargo - All the functionality of the original oh-my-zsh cargo completion, with additional support for remote crates via `cargo search` in `cargo add`. (Completions / ZSH on Windows)
- awesome-zsh-plugins - cargo - All the functionality of the original oh-my-zsh cargo completion, with additional support for remote crates via `cargo search` in `cargo add`. (Completions / ZSH on Windows)
README
# zsh-cargo-completion
![cargo add rand ](cargoadd.png)
This plugin has all functionality of OMZ cargo completion but it also allows `cargo add/install ` to complete remote crates from output of `cargo search`.
It also adds several cargo aliases.
```sh
alias co=cargo
alias cr='cargo run'
alias cl='cargo clean'
alias ccy='cargo clippy'
alias cb='cargo build --release'
alias ct='cargo test'
alias ca='cargo add'
alias ci='cargo install'
alias cfi='cargo fix'
alias cf='cargo fmt'
alias cfe='cargo fetch'
alias cpa='cargo package'
alias cs='cargo search'
alias cfa='cargo fmt; cargo fix --allow-dirty --allow-staged'
```## Install for Zinit
> `~/.zshrc`
```sh
source "$HOME/.zinit/bin/zinit.zsh"
zinit ice lucid nocompile
zinit load MenkeTechnologies/zsh-cargo-completion
```## Install for Oh My Zsh
```sh
cd "$HOME/.oh-my-zsh/custom/plugins" && git clone https://github.com/MenkeTechnologies/zsh-cargo-completion.git
```Add `zsh-cargo-completion` to plugins array in ~/.zshrc
## General Install
```sh
git clone https://github.com/MenkeTechnologies/zsh-cargo-completion.git
```source zsh-cargo-completion.plugin.zsh or add code to zshrc or any startup script