mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-14 05:53:59 +00:00
Add xz support to __fish_complete_tar
function
This commit is contained in:
parent
c28bd74ca7
commit
4bed9ea56d
1 changed files with 7 additions and 0 deletions
|
@ -22,6 +22,13 @@ function __fish_complete_tar -d "Peek inside of archives and list all files"
|
||||||
end
|
end
|
||||||
return
|
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'
|
case '*.tar'
|
||||||
if test -f $i
|
if test -f $i
|
||||||
set -l file_list (tar -t <$i)
|
set -l file_list (tar -t <$i)
|
||||||
|
|
Loading…
Reference in a new issue