The zsh `compdef` function enables file and folder autocompletion for custom commands and aliases. By adding `compdef _default uvx` to your `.zshrc`, you can enable file completion for Python command chains like `uvx marimo`, which don't have autocompletion by default. This is particularly useful when creating aliases that need to work with file paths.

1m read timeFrom koaning.io
Post cover image

Sort: