bash : add autocomplete for archive.
This commit is contained in:
parent
941a10081b
commit
8c38272b10
|
@ -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
|
||||||
|
|
Reference in a new issue