mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-28 01:11:15 -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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user