bash : add autocomplete for archive.

This commit is contained in:
Dmitry Voronin 2023-10-23 00:33:09 +03:00
parent 941a10081b
commit 8c38272b10

View file

@ -149,3 +149,12 @@ export -f archive
export -f archive_fast export -f archive_fast
export -f archive_check export -f archive_check
export -f unarchive export -f unarchive
# autocompletes.
_archive_list()
{
autocomplete "$(ls *_*.tar.* 2> /dev/null)"
}
complete -F _archive_list archive_check
complete -F _archive_list unarchive