about summary refs log tree commit diff
path: root/Completion/User/_pack
blob: 5ec7a160cdf2c2af530bf291a3b685b5cd17ea04 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#compdef pack pcat unpack

local expl state line

case ${words[1]:t} in
  pack)
    _arguments -C \
      '-f[force packing even for files which will not benefit]' \
      '-[show statistics for files]' \
      '*:file to compress:_files -g \*\~\*.z'
  ;;
  pcat|unpack)
    _description files expl 'compressed file'
    _files "$expl[@]" -g '*.z'
  ;;
esac