mirror of
				git://git.code.sf.net/p/zsh/code
				synced 2025-11-04 07:21:06 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			16 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			Text
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
	
		
			358 B
		
	
	
	
		
			Text
		
	
	
	
	
	
#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
 |