I have enabled zsh-completions using zinit and however when attempting to use completions with the ‘defaults’ command such as defaults write com.apple.screencapture location /path/to/
it seems to fail to utilise the autocomplete feature when filling in the path. It works fine for all the other arguments however it is unable to autocomplete for the path.
This issue only seems to localised to this specific command as it works fine with other macOS specific commands such as swift
and open
. I was wondering whether I might have set up zsh-completions incorrectly or whether this is an issue others may have encountered or is this expected behavior.
I install zsh-completions like so:
zinit light zsh-users/zsh-completions
I also have the following zstyles
:
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
zstyle ':completion:*' menu no
zstyle ':completion:*' list-suffixes
zstyle ':completion:*' expand prefix suffix
I have tried reinstalling completions if I had a bad install however I am still able to reproduce this issue.
Please let me know if more infomation is needed to help diagnose this issue.
mxcury is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.