my xfce4 dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
3.0 KiB

3 years ago
  1. # extract plugin
  2. This plugin defines a function called `extract` that extracts the archive file
  3. you pass it, and it supports a wide variety of archive filetypes.
  4. This way you don't have to know what specific command extracts a file, you just
  5. do `extract <filename>` and the function takes care of the rest.
  6. To use it, add `extract` to the plugins array in your zshrc file:
  7. ```zsh
  8. plugins=(... extract)
  9. ```
  10. ## Supported file extensions
  11. | Extension | Description |
  12. |:------------------|:-------------------------------------|
  13. | `7z` | 7zip file |
  14. | `Z` | Z archive (LZW) |
  15. | `apk` | Android app file |
  16. | `aar` | Android library file |
  17. | `bz2` | Bzip2 file |
  18. | `cab` | Microsoft cabinet archive |
  19. | `cpio` | Cpio archive |
  20. | `deb` | Debian package |
  21. | `ear` | Enterprise Application aRchive |
  22. | `gz` | Gzip file |
  23. | `ipa` | iOS app package |
  24. | `ipsw` | iOS firmware file |
  25. | `jar` | Java Archive |
  26. | `lrz` | LRZ archive |
  27. | `lz4` | LZ4 archive |
  28. | `lzma` | LZMA archive |
  29. | `rar` | WinRAR archive |
  30. | `rpm` | RPM package |
  31. | `sublime-package` | Sublime Text package |
  32. | `tar` | Tarball |
  33. | `tar.bz2` | Tarball with bzip2 compression |
  34. | `tar.gz` | Tarball with gzip compression |
  35. | `tar.lrz` | Tarball with lrzip compression |
  36. | `tar.lz` | Tarball with lzip compression |
  37. | `tar.lz4` | Tarball with lz4 compression |
  38. | `tar.xz` | Tarball with lzma2 compression |
  39. | `tar.zma` | Tarball with lzma compression |
  40. | `tar.zst` | Tarball with zstd compression |
  41. | `tbz` | Tarball with bzip compression |
  42. | `tbz2` | Tarball with bzip2 compression |
  43. | `tgz` | Tarball with gzip compression |
  44. | `tlz` | Tarball with lzma compression |
  45. | `txz` | Tarball with lzma2 compression |
  46. | `tzst` | Tarball with zstd compression |
  47. | `war` | Web Application archive (Java-based) |
  48. | `xpi` | Mozilla XPI module file |
  49. | `xz` | LZMA2 archive |
  50. | `zip` | Zip archive |
  51. | `zst` | Zstandard file (zstd) |
  52. See [list of archive formats](https://en.wikipedia.org/wiki/List_of_archive_formats) for
  53. more information regarding archive formats.