zsh: misc
This commit is contained in:
parent
f0281d7325
commit
df82d745e7
4 changed files with 37 additions and 0 deletions
27
dot_config/zsh/completion/_dotnet
Normal file
27
dot_config/zsh/completion/_dotnet
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
#compdef dotnet
|
||||||
|
|
||||||
|
_dotnet() {
|
||||||
|
local -a args cmds
|
||||||
|
for c in $(dotnet complete "$words")
|
||||||
|
do
|
||||||
|
if [[ $c =~ ^[-/] ]]
|
||||||
|
then
|
||||||
|
args+=$c
|
||||||
|
else
|
||||||
|
cmds+=$c
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
if (( ${#args} + ${#cmds} > 0 ))
|
||||||
|
then
|
||||||
|
_values command $cmds
|
||||||
|
_values option $args
|
||||||
|
else
|
||||||
|
_arguments '*::arguments: _normal'
|
||||||
|
fi
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
_dotnet $@
|
||||||
|
|
||||||
|
# vim: ft=zsh
|
|
@ -39,3 +39,6 @@ alias -g .....='../../../..'
|
||||||
alias -g ......='../../../../..'
|
alias -g ......='../../../../..'
|
||||||
|
|
||||||
alias ssh='kitten ssh'
|
alias ssh='kitten ssh'
|
||||||
|
|
||||||
|
alias podr='podman run -it --rm'
|
||||||
|
alias podrs='podman run -it --rm --entrypoint /bin/sh'
|
||||||
|
|
|
@ -3,6 +3,8 @@ zstyle ':zim' disable-version-check yes
|
||||||
zstyle ':zim:completion' dumpfile ${cachedir}/compdump
|
zstyle ':zim:completion' dumpfile ${cachedir}/compdump
|
||||||
zstyle ':completion::complete:*' cache-path ${cachedir}/compcache
|
zstyle ':completion::complete:*' cache-path ${cachedir}/compcache
|
||||||
|
|
||||||
|
zstyle ':completion:*' use-compctl on
|
||||||
|
|
||||||
# ignore parameters private to various plugins (especially POWERLEVEL clutters the completion to unbearable level)
|
# ignore parameters private to various plugins (especially POWERLEVEL clutters the completion to unbearable level)
|
||||||
zstyle ':completion:*:*:-parameter-:*:*' ignored-patterns '_*|POWERLEVEL*|P9K*|FAST*|GITSTATUS*'
|
zstyle ':completion:*:*:-parameter-:*:*' ignored-patterns '_*|POWERLEVEL*|P9K*|FAST*|GITSTATUS*'
|
||||||
|
|
||||||
|
|
|
@ -36,4 +36,9 @@ then
|
||||||
fi
|
fi
|
||||||
unset _fast_theme
|
unset _fast_theme
|
||||||
|
|
||||||
|
if (( ${+ZIM_UPDATE} ))
|
||||||
|
then
|
||||||
|
zimfw update -v
|
||||||
|
fi
|
||||||
|
|
||||||
unset cachedir datadir confdir
|
unset cachedir datadir confdir
|
||||||
|
|
Loading…
Add table
Reference in a new issue