1
0
mirror of https://github.com/XNM1/linux-nixos-hyprland-config-dotfiles.git synced 2025-09-15 09:45:58 +03:00
Files
linux-nixos-hyprland-config…/home/.config/fish/functions/archive-preview.fish
xnm 59ea19d35d fish scripts update
changelog:
- refactored fzf scripts
- nullify unused\remapped fzf bindings
- `list-op.fish` hotfix 3
- added `hexyl` package to the system
2024-10-13 23:11:03 +03:00

12 lines
335 B
Fish

function archive-preview
set archive "$argv[1]"
set supported_archive_formats tar.gz tar.bz2 tar.xz zip rar 7z
for format in $supported_archive_formats
if string match -q "application/$format" (file -b --mime-type "$archive")
ouch list --tree --no "$archive"
exit 0
end
end
end