Files
RedBear-OS/recipes/shells/zsh/source/Completion/Unix/Command/_look
T
vasilito ff4ff35918 feat: track all source trees in git — full fork offline-first model
Red Bear OS is a full fork. All sources must be available from git clone
with zero network access. Removed gitignore rules that excluded fetched
source trees under recipes/*/source/, local/recipes/kde/*/source/,
local/recipes/qt/*/source/, and vendor source trees.

Build artifacts (target/, build/, source.tar, *.o, *.so) remain excluded.

127291 files added — kernel, relibc, base, bootloader, pkgar, all KDE/Qt
frameworks, mesa, wayland, DRM drivers, and every other recipe source.
2026-05-14 10:55:53 +01:00

35 lines
998 B
Plaintext

#compdef look
local curcontext="$curcontext" state line expl args sep='+' ret=1
typeset -A opt_args
case $OSTYPE in
linux*)
args=(
'(2 -a --alternative)'{-a,--alternative}'[use alternative dictionary file]'
'(-d --alphanum)'{-d,--alphanum}'[dictionary order]'
'(-f --ignore-case)'{-f,--ignore-case}'[case insensitive]'
'(-t --terminate)'{-t+,--terminate=}'[specify termination character]:termination character'
'(-)'{-h,--help}'[display help information]'
'(-)'{-V,--version}'[display version information]'
)
;;
solaris*) sep='-' ;&
*)
args=( -A "-*"
"-t${sep}[specify termination character]:termination character"
'-f[case insensitive]'
'-d[dictionary order]'
)
;;
esac
_arguments -C -s -S $args \
'1:string:->string' \
'2:dictionary file:_files' && ret=0
[[ -n "$state" && ! -prefix - ]] && _wanted values expl 'word prefix' \
compadd - $(_call_program words $words[1] '"$PREFIX"') && return
return ret