Add xz support to __fish_complete_tar function

This commit is contained in:
Clément Martinez 2017-01-05 19:11:38 +01:00 committed by Fabian Homborg
parent c28bd74ca7
commit 4bed9ea56d

View file

@ -21,6 +21,13 @@ function __fish_complete_tar -d "Peek inside of archives and list all files"
printf (_ "%s\tArchived file\n") $file_list
end
return
case '*.tar.xz'
if test -f $i
set -l file_list (tar -Jt <$i)
printf (_ "%s\tArchived file\n") $file_list
end
return
case '*.tar'
if test -f $i