diff --git a/dot_config/zsh/completion/_dotnet b/dot_config/zsh/completion/_dotnet new file mode 100644 index 0000000..495957a --- /dev/null +++ b/dot_config/zsh/completion/_dotnet @@ -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 diff --git a/dot_config/zsh/include/aliases.zsh b/dot_config/zsh/include/aliases.zsh index 216c5f4..4491950 100644 --- a/dot_config/zsh/include/aliases.zsh +++ b/dot_config/zsh/include/aliases.zsh @@ -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' diff --git a/dot_config/zsh/include/options.zsh b/dot_config/zsh/include/options.zsh index 9cf96d4..e6c9f73 100644 --- a/dot_config/zsh/include/options.zsh +++ b/dot_config/zsh/include/options.zsh @@ -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*' diff --git a/dot_config/zsh/init.zsh b/dot_config/zsh/init.zsh index 0bd7ad3..851c5b2 100644 --- a/dot_config/zsh/init.zsh +++ b/dot_config/zsh/init.zsh @@ -36,4 +36,9 @@ then fi unset _fast_theme +if (( ${+ZIM_UPDATE} )) +then + zimfw update -v +fi + unset cachedir datadir confdir