1
0
mirror of https://github.com/cheat/cheat.git synced 2024-12-22 20:55:06 +01:00
cheat/_cheat

13 lines
269 B
Plaintext
Raw Normal View History

2013-08-29 17:05:46 +02:00
#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