1
0
Fork 0
mirror of https://github.com/Erreur32/cheat.git synced 2025-01-13 00:02:02 +01:00
cheat-fork-echo/_cheat
2013-08-29 19:12:00 +04:00

12 lines
269 B
Text

#compdef cheat
declare -a cheats cheats_in_this_dir
for directory in $(cheat --cheat_directories); do
cheats_in_this_dir=($directory/*(N:r:t))
[[ ${#cheats_in_this_dir} > 0 ]] && cheats+=($cheats_in_this_dir)
done
_arguments "1:cheats:(${cheats})"
return 1