X-Git-Url: https://src.twobees.de/?a=blobdiff_plain;f=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Frust%2Frust.plugin.zsh;fp=stow%2Foh-my-zsh%2F.oh-my-zsh%2Fplugins%2Frust%2Frust.plugin.zsh;h=0000000000000000000000000000000000000000;hb=1a8e170bbe5c6641a26ab1ce2e6ce6c5c1faa4cd;hp=858f14126ffd96594d9244ec14c582c332ea6743;hpb=475ba35502579302593f4735c853c49ef1845dcb;p=dotfiles.git diff --git a/stow/oh-my-zsh/.oh-my-zsh/plugins/rust/rust.plugin.zsh b/stow/oh-my-zsh/.oh-my-zsh/plugins/rust/rust.plugin.zsh deleted file mode 100644 index 858f141..0000000 --- a/stow/oh-my-zsh/.oh-my-zsh/plugins/rust/rust.plugin.zsh +++ /dev/null @@ -1,26 +0,0 @@ -if ! (( $+commands[rustup] && $+commands[cargo] )); then - return -fi - -# If the completion file doesn't exist yet, we need to autoload it and -# bind it to `cargo`. Otherwise, compinit will have already done that -if [[ ! -f "$ZSH_CACHE_DIR/completions/_cargo" ]]; then - autoload -Uz _cargo - typeset -g -A _comps - _comps[cargo]=_cargo -fi - -# If the completion file doesn't exist yet, we need to autoload it and -# bind it to `rustup`. Otherwise, compinit will have already done that -if [[ ! -f "$ZSH_CACHE_DIR/completions/_rustup" ]]; then - autoload -Uz _rustup - typeset -g -A _comps - _comps[rustup]=_rustup -fi - -# Generate completion files in the background -rustup completions zsh >| "$ZSH_CACHE_DIR/completions/_rustup" &| -cat >| "$ZSH_CACHE_DIR/completions/_cargo" <<'EOF' -#compdef cargo -source "$(rustc +${${(z)$(rustup default)}[1]} --print sysroot)"/share/zsh/site-functions/_cargo -EOF