mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
Add xz support to __fish_complete_tar function
This commit is contained in:
committed by
Fabian Homborg
parent
c28bd74ca7
commit
4bed9ea56d
@@ -21,6 +21,13 @@ function __fish_complete_tar -d "Peek inside of archives and list all files"
|
|||||||
printf (_ "%s\tArchived file\n") $file_list
|
printf (_ "%s\tArchived file\n") $file_list
|
||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user