mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-11 07:34:32 +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
|
||||
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
|
||||
set -l file_list (tar -t <$i)
|
||||
|
|
Loading…
Reference in a new issue