zsh completions: add initial zsh completions

This commit is contained in:
Eric Torres 2020-10-24 17:49:40 -07:00
parent b2925bfd23
commit 125d5d7d55
2 changed files with 35 additions and 0 deletions

15
_fedit Normal file
View File

@ -0,0 +1,15 @@
#compdef fedit
local arguments
arguments=(
{-h,--help}'[show this help message and exit]'
{-b,--boot}'[edit a file in /boot]'
{-d,--dir}'[edit a file in a given directory]'
{-E,--etc}'[edit a file in /etc]'
{-e,--editor}'[use a given editor]'
{-I,--no-ignore}'[do not respect .(git|fd)ignore files]'
{-i,--no-ignore-vcs}'[do not respect .gitignore files]'
'*:filename:_files'
)
_arguments -s $arguments

20
_quickdel Normal file
View File

@ -0,0 +1,20 @@
#compdef quickdel
# ========== Completions ==========
local arguments
arguments=(
{-d,--directories-only}'[filter results to directories]'
{-e,--empty-only}'[filter results to empty files and directories]'
{-f,--files-only}'[filter results to files]'
{-F,--force-directory-delete}'[do not ignore non-empty directories, delete anyways]'
{-E,--extension}'[file extension]'
{-h,--help}'[print this help page]'
{-i,--no-ignore}'[do not ignore .gitignore and .fdignore]'
{-I,--no-ignore-vcs}'[do not ignore .gitignore]'
{-l,--links-only}'[filter results to symlinks]'
'*:filename:_files'
)
_arguments -s $arguments