mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-12-12 20:21:02 +01:00
chore: removing old completion code (#10616)
This commit is contained in:
parent
dbadfa0810
commit
3f214329d6
10 changed files with 0 additions and 89 deletions
|
@ -1,14 +1,6 @@
|
||||||
print ${(%):-'%F{yellow}The `cargo` plugin is deprecated and has been moved to the `rust` plugin.'}
|
print ${(%):-'%F{yellow}The `cargo` plugin is deprecated and has been moved to the `rust` plugin.'}
|
||||||
print ${(%):-'Please update your .zshrc to use the `%Brust%b` plugin instead.%f'}
|
print ${(%):-'Please update your .zshrc to use the `%Brust%b` plugin instead.%f'}
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this block
|
|
||||||
# Handle $0 according to the standard:
|
|
||||||
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
|
|
||||||
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
|
||||||
0="${${(M)0:#/*}:-$PWD/$0}"
|
|
||||||
# Remove old generated completion file
|
|
||||||
command rm -f "${0:A:h}/_cargo" "$ZSH_CACHE_DIR/cargo_version"
|
|
||||||
|
|
||||||
(( ${fpath[(Ie)$ZSH/plugins/rust]} )) || {
|
(( ${fpath[(Ie)$ZSH/plugins/rust]} )) || {
|
||||||
fpath=("$ZSH/plugins/rust" $fpath)
|
fpath=("$ZSH/plugins/rust" $fpath)
|
||||||
source "$ZSH/plugins/rust/rust.plugin.zsh"
|
source "$ZSH/plugins/rust/rust.plugin.zsh"
|
||||||
|
|
|
@ -16,19 +16,6 @@ if (( ! $+commands[deno] )); then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this block
|
|
||||||
# Handle $0 according to the standard:
|
|
||||||
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
|
|
||||||
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
|
||||||
0="${${(M)0:#/*}:-$PWD/$0}"
|
|
||||||
# Remove old generated files
|
|
||||||
command rm -f "${0:A:h}/_deno" "$ZSH_CACHE_DIR/deno_version"
|
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this bit of code as it exists in oh-my-zsh.sh
|
|
||||||
# Add completions folder in $ZSH_CACHE_DIR
|
|
||||||
command mkdir -p "$ZSH_CACHE_DIR/completions"
|
|
||||||
(( ${fpath[(Ie)"$ZSH_CACHE_DIR/completions"]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
|
|
||||||
|
|
||||||
# If the completion file doesn't exist yet, we need to autoload it and
|
# If the completion file doesn't exist yet, we need to autoload it and
|
||||||
# bind it to `deno`. Otherwise, compinit will have already done that.
|
# bind it to `deno`. Otherwise, compinit will have already done that.
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_deno" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_deno" ]]; then
|
||||||
|
|
|
@ -2,19 +2,6 @@ if (( ! $+commands[fnm] )); then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this block
|
|
||||||
# Handle $0 according to the standard:
|
|
||||||
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
|
|
||||||
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
|
||||||
0="${${(M)0:#/*}:-$PWD/$0}"
|
|
||||||
# remove old generated files
|
|
||||||
command rm -f "${0:A:h}/_fnm" "$ZSH_CACHE_DIR/fnm_version"
|
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this bit of code as it exists in oh-my-zsh.sh
|
|
||||||
# Add completions folder in $ZSH_CACHE_DIR
|
|
||||||
command mkdir -p "$ZSH_CACHE_DIR/completions"
|
|
||||||
(( ${fpath[(Ie)"$ZSH_CACHE_DIR/completions"]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
|
|
||||||
|
|
||||||
# If the completion file doesn't exist yet, we need to autoload it and
|
# If the completion file doesn't exist yet, we need to autoload it and
|
||||||
# bind it to `fnm`. Otherwise, compinit will have already done that.
|
# bind it to `fnm`. Otherwise, compinit will have already done that.
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_fnm" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_fnm" ]]; then
|
||||||
|
|
|
@ -3,19 +3,6 @@ if (( ! $+commands[gh] )); then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this block
|
|
||||||
# Handle $0 according to the standard:
|
|
||||||
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
|
|
||||||
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
|
||||||
0="${${(M)0:#/*}:-$PWD/$0}"
|
|
||||||
# Remove old generated files
|
|
||||||
command rm -f "${0:A:h}/_gh" "$ZSH_CACHE_DIR/gh_version"
|
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this bit of code as it exists in oh-my-zsh.sh
|
|
||||||
# Add completions folder in $ZSH_CACHE_DIR
|
|
||||||
command mkdir -p "$ZSH_CACHE_DIR/completions"
|
|
||||||
(( ${fpath[(Ie)"$ZSH_CACHE_DIR/completions"]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
|
|
||||||
|
|
||||||
# If the completion file doesn't exist yet, we need to autoload it and
|
# If the completion file doesn't exist yet, we need to autoload it and
|
||||||
# bind it to `gh`. Otherwise, compinit will have already done that.
|
# bind it to `gh`. Otherwise, compinit will have already done that.
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_gh" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_gh" ]]; then
|
||||||
|
|
|
@ -2,15 +2,6 @@ if (( ! $+commands[helm] )); then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: 2021-12-28: delete this block
|
|
||||||
# Remove old generated file
|
|
||||||
command rm -f "${ZSH_CACHE_DIR}/helm_completion"
|
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this bit of code as it exists in oh-my-zsh.sh
|
|
||||||
# Add completions folder in $ZSH_CACHE_DIR
|
|
||||||
command mkdir -p "$ZSH_CACHE_DIR/completions"
|
|
||||||
(( ${fpath[(Ie)"$ZSH_CACHE_DIR/completions"]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
|
|
||||||
|
|
||||||
# If the completion file does not exist, generate it and then source it
|
# If the completion file does not exist, generate it and then source it
|
||||||
# Otherwise, source it and regenerate in the background
|
# Otherwise, source it and regenerate in the background
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_helm" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_helm" ]]; then
|
||||||
|
|
|
@ -1,13 +1,4 @@
|
||||||
if (( $+commands[kubectl] )); then
|
if (( $+commands[kubectl] )); then
|
||||||
# TODO: 2022-01-05: remove this block
|
|
||||||
# remove old generated files
|
|
||||||
command rm -f "$ZSH_CACHE_DIR/kubectl_completion"
|
|
||||||
|
|
||||||
# TODO: 2022-01-05: remove this bit of code as it exists in oh-my-zsh.sh
|
|
||||||
# Add completions folder in $ZSH_CACHE_DIR
|
|
||||||
command mkdir -p "$ZSH_CACHE_DIR/completions"
|
|
||||||
(( ${fpath[(Ie)"$ZSH_CACHE_DIR/completions"]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
|
|
||||||
|
|
||||||
# If the completion file does not exist, generate it and then source it
|
# If the completion file does not exist, generate it and then source it
|
||||||
# Otherwise, source it and regenerate in the background
|
# Otherwise, source it and regenerate in the background
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_kubectl" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_kubectl" ]]; then
|
||||||
|
|
|
@ -2,12 +2,6 @@ if (( ! $+commands[rbw] )); then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this bit of code as it exists in oh-my-zsh.sh
|
|
||||||
# Add completions folder in $ZSH_CACHE_DIR
|
|
||||||
command mkdir -p "$ZSH_CACHE_DIR/completions"
|
|
||||||
(( ${fpath[(Ie)"$ZSH_CACHE_DIR/completions"]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
|
|
||||||
|
|
||||||
|
|
||||||
# If the completion file doesn't exist yet, we need to autoload it and
|
# If the completion file doesn't exist yet, we need to autoload it and
|
||||||
# bind it to `rbw`. Otherwise, compinit will have already done that.
|
# bind it to `rbw`. Otherwise, compinit will have already done that.
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_rbw" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_rbw" ]]; then
|
||||||
|
|
|
@ -2,11 +2,6 @@ if ! (( $+commands[rustup] && $+commands[cargo] )); then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add completions folder in $ZSH_CACHE_DIR
|
|
||||||
# TODO: 2021-12-28: remove this bit of code as it exists in oh-my-zsh.sh
|
|
||||||
command mkdir -p "$ZSH_CACHE_DIR/completions"
|
|
||||||
(( ${fpath[(Ie)"$ZSH_CACHE_DIR/completions"]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
|
|
||||||
|
|
||||||
# If the completion file doesn't exist yet, we need to autoload it and
|
# 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
|
# bind it to `cargo`. Otherwise, compinit will have already done that
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_cargo" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_cargo" ]]; then
|
||||||
|
|
|
@ -1,14 +1,6 @@
|
||||||
print ${(%):-'%F{yellow}The `rustup` plugin is deprecated and has been moved to the `rust` plugin.'}
|
print ${(%):-'%F{yellow}The `rustup` plugin is deprecated and has been moved to the `rust` plugin.'}
|
||||||
print ${(%):-'Please update your .zshrc to use the `%Brust%b` plugin instead.%f'}
|
print ${(%):-'Please update your .zshrc to use the `%Brust%b` plugin instead.%f'}
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this block
|
|
||||||
# Handle $0 according to the standard:
|
|
||||||
# https://zdharma-continuum.github.io/Zsh-100-Commits-Club/Zsh-Plugin-Standard.html
|
|
||||||
0="${${ZERO:-${0:#$ZSH_ARGZERO}}:-${(%):-%N}}"
|
|
||||||
0="${${(M)0:#/*}:-$PWD/$0}"
|
|
||||||
# Remove old generated completion file
|
|
||||||
command rm -f "${0:A:h}/_rustup" "$ZSH_CACHE_DIR/rustup_version"
|
|
||||||
|
|
||||||
(( ${fpath[(Ie)$ZSH/plugins/rust]} )) || {
|
(( ${fpath[(Ie)$ZSH/plugins/rust]} )) || {
|
||||||
fpath=("$ZSH/plugins/rust" $fpath)
|
fpath=("$ZSH/plugins/rust" $fpath)
|
||||||
source "$ZSH/plugins/rust/rust.plugin.zsh"
|
source "$ZSH/plugins/rust/rust.plugin.zsh"
|
||||||
|
|
|
@ -3,11 +3,6 @@ if (( ! $+commands[volta] )); then
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# TODO: 2021-12-28: remove this bit of code as it exists in oh-my-zsh.sh
|
|
||||||
# Add completions folder in $ZSH_CACHE_DIR
|
|
||||||
command mkdir -p "$ZSH_CACHE_DIR/completions"
|
|
||||||
(( ${fpath[(Ie)"$ZSH_CACHE_DIR/completions"]} )) || fpath=("$ZSH_CACHE_DIR/completions" $fpath)
|
|
||||||
|
|
||||||
# If the completion file doesn't exist yet, we need to autoload it and
|
# If the completion file doesn't exist yet, we need to autoload it and
|
||||||
# bind it to `deno`. Otherwise, compinit will have already done that.
|
# bind it to `deno`. Otherwise, compinit will have already done that.
|
||||||
if [[ ! -f "$ZSH_CACHE_DIR/completions/_volta" ]]; then
|
if [[ ! -f "$ZSH_CACHE_DIR/completions/_volta" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue