File: _pack

package info (click to toggle)
zsh 5.9-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 23,856 kB
  • sloc: ansic: 108,138; sh: 6,976; makefile: 722; perl: 687; awk: 291; sed: 16
file content (16 lines) | stat: -rw-r--r-- 361 bytes parent folder | download | duplicates (16)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#compdef pack unpack pcat=unpack

local expl state line

case $service in
  pack)
    _arguments -C \
      '-f[force packing even for files which will not benefit]' \
      '-[show statistics for files]' \
      '*:file to compress:_files -g "^*.z(-.)"'
  ;;
  unpack)
    _description files expl 'compressed file'
    _files "$expl[@]" -g '*.z(-.)'
  ;;
esac