mirror of
				https://github.com/dcarrillo/prezto.git
				synced 2025-11-04 07:29:09 +00:00 
			
		
		
		
	Improve the output of 'pacman-list-explicit'
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.
This commit is contained in:
		@@ -9,10 +9,13 @@
 | 
			
		||||
pacman --query --explicit --info \
 | 
			
		||||
  | awk '
 | 
			
		||||
      BEGIN {
 | 
			
		||||
        FS=":"
 | 
			
		||||
        FS=" : "
 | 
			
		||||
      }
 | 
			
		||||
      /^Name/ {
 | 
			
		||||
        print $2
 | 
			
		||||
        printf "\033[0;01m" $2 "\033[0m"
 | 
			
		||||
      }
 | 
			
		||||
      /^Version/ {
 | 
			
		||||
        print " \033[1;32m" $2 "\033[0m"
 | 
			
		||||
      }
 | 
			
		||||
      /^Description/ {
 | 
			
		||||
        print $2
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user