1
0
Fork 0

zsh: misc

This commit is contained in:
Vladimír Dudr 2023-06-23 08:47:11 +02:00
parent f0281d7325
commit df82d745e7
4 changed files with 37 additions and 0 deletions

View 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

View file

@ -39,3 +39,6 @@ alias -g .....='../../../..'
alias -g ......='../../../../..'
alias ssh='kitten ssh'
alias podr='podman run -it --rm'
alias podrs='podman run -it --rm --entrypoint /bin/sh'

View file

@ -3,6 +3,8 @@ zstyle ':zim' disable-version-check yes
zstyle ':zim:completion' dumpfile ${cachedir}/compdump
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)
zstyle ':completion:*:*:-parameter-:*:*' ignored-patterns '_*|POWERLEVEL*|P9K*|FAST*|GITSTATUS*'

View file

@ -36,4 +36,9 @@ then
fi
unset _fast_theme
if (( ${+ZIM_UPDATE} ))
then
zimfw update -v
fi
unset cachedir datadir confdir