mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 07:29:09 +00:00 
			
		
		
		
	Package names are bold, and the package version is also shown, in bold green. Fix awk's field separator which used to truncate any version or package description containing a colon.
		
			
				
	
	
		
			25 lines
		
	
	
		
			424 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			25 lines
		
	
	
		
			424 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
#
 | 
						|
# Lists explicitly installed Pacman packages.
 | 
						|
#
 | 
						|
# Authors:
 | 
						|
#   Benjamin Boudreau <dreurmail@gmail.com>
 | 
						|
#   Sorin Ionescu <sorin.ionescu@gmail.com>
 | 
						|
#
 | 
						|
 | 
						|
pacman --query --explicit --info \
 | 
						|
  | awk '
 | 
						|
      BEGIN {
 | 
						|
        FS=" : "
 | 
						|
      }
 | 
						|
      /^Name/ {
 | 
						|
        printf "\033[0;01m" $2 "\033[0m"
 | 
						|
      }
 | 
						|
      /^Version/ {
 | 
						|
        print " \033[1;32m" $2 "\033[0m"
 | 
						|
      }
 | 
						|
      /^Description/ {
 | 
						|
        print $2
 | 
						|
      }
 | 
						|
    '
 | 
						|
 |