Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
oh-my-zsh
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
github
oh-my-zsh
Commits
3f214329
Unverified
Commit
3f214329
authored
Mar 28, 2022
by
Carlo Sala
Committed by
GitHub
Mar 28, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: removing old completion code (#10616)
parent
dbadfa08
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
0 additions
and
89 deletions
+0
-89
cargo.plugin.zsh
plugins/cargo/cargo.plugin.zsh
+0
-8
deno.plugin.zsh
plugins/deno/deno.plugin.zsh
+0
-13
fnm.plugin.zsh
plugins/fnm/fnm.plugin.zsh
+0
-13
gh.plugin.zsh
plugins/gh/gh.plugin.zsh
+0
-13
helm.plugin.zsh
plugins/helm/helm.plugin.zsh
+0
-9
kubectl.plugin.zsh
plugins/kubectl/kubectl.plugin.zsh
+0
-9
rbw.plugin.zsh
plugins/rbw/rbw.plugin.zsh
+0
-6
rust.plugin.zsh
plugins/rust/rust.plugin.zsh
+0
-5
rustup.plugin.zsh
plugins/rustup/rustup.plugin.zsh
+0
-8
volta.plugin.zsh
plugins/volta/volta.plugin.zsh
+0
-5
No files found.
plugins/cargo/cargo.plugin.zsh
View file @
3f214329
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"
...
...
plugins/deno/deno.plugin.zsh
View file @
3f214329
...
@@ -16,19 +16,6 @@ if (( ! $+commands[deno] )); then
...
@@ -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
...
...
plugins/fnm/fnm.plugin.zsh
View file @
3f214329
...
@@ -2,19 +2,6 @@ if (( ! $+commands[fnm] )); 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
...
...
plugins/gh/gh.plugin.zsh
View file @
3f214329
...
@@ -3,19 +3,6 @@ if (( ! $+commands[gh] )); 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
...
...
plugins/helm/helm.plugin.zsh
View file @
3f214329
...
@@ -2,15 +2,6 @@ if (( ! $+commands[helm] )); 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
...
...
plugins/kubectl/kubectl.plugin.zsh
View file @
3f214329
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
...
...
plugins/rbw/rbw.plugin.zsh
View file @
3f214329
...
@@ -2,12 +2,6 @@ if (( ! $+commands[rbw] )); 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
...
...
plugins/rust/rust.plugin.zsh
View file @
3f214329
...
@@ -2,11 +2,6 @@ if ! (( $+commands[rustup] && $+commands[cargo] )); 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
...
...
plugins/rustup/rustup.plugin.zsh
View file @
3f214329
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"
...
...
plugins/volta/volta.plugin.zsh
View file @
3f214329
...
@@ -3,11 +3,6 @@ if (( ! $+commands[volta] )); then
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment