work in progress
This commit is contained in:
		
							parent
							
								
									ad658b1604
								
							
						
					
					
						commit
						2f58f64fac
					
				
							
								
								
									
										14
									
								
								fpf
								
								
								
								
							
							
						
						
									
										14
									
								
								fpf
								
								
								
								
							|  | @ -21,6 +21,14 @@ Help() { | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| ### MAIN | ### MAIN | ||||||
|  | 
 | ||||||
|  | #   Test for AUR option, if not run with pacman | ||||||
|  | if [[ -z "$1" ]]; then | ||||||
|  |     pacman -Qq > /tmp/local_packages | ||||||
|  |     cat /tmp/packages /tmp/local_packages | sort | uniq > /tmp/all_packages | ||||||
|  |     cat /tmp/all_packages |fzf -e -m --preview 'cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' --layout=reverse --prompt='Select packages to install (use TAB to toggle selection) >' | xargs -ro -n1 sudo pacman -S | ||||||
|  | fi | ||||||
|  | 
 | ||||||
| while getopts ":yh" option; do | while getopts ":yh" option; do | ||||||
| 	case $option in | 	case $option in | ||||||
|       y) #Get AUR package database, remove unwanted lines, preview database and hand off to yay for install |       y) #Get AUR package database, remove unwanted lines, preview database and hand off to yay for install | ||||||
|  | @ -30,7 +38,7 @@ while getopts ":yh" option; do | ||||||
|         echo "$(tail -n +2 /tmp/aur/packages)" > /tmp/aur/packages |         echo "$(tail -n +2 /tmp/aur/packages)" > /tmp/aur/packages | ||||||
|         cat /tmp/aur/packages | fzf -e -m --preview  'cat <(yay -Si {1}) <(yay -Fl {1} | awk "{print \$2}")' --layout=reverse --prompt='Select packages to install (use TAB to toggle selection) >' | xargs -ro -n1 yay -S |         cat /tmp/aur/packages | fzf -e -m --preview  'cat <(yay -Si {1}) <(yay -Fl {1} | awk "{print \$2}")' --layout=reverse --prompt='Select packages to install (use TAB to toggle selection) >' | xargs -ro -n1 yay -S | ||||||
|         clear |         clear | ||||||
|         return;; |         ;; | ||||||
|       h) #Usage // Help |       h) #Usage // Help | ||||||
|         Help |         Help | ||||||
|         ;; |         ;; | ||||||
|  | @ -41,7 +49,3 @@ while getopts ":yh" option; do | ||||||
|         ;; |         ;; | ||||||
| 	esac | 	esac | ||||||
| done | done | ||||||
| 
 |  | ||||||
| pacman -Qq > /tmp/local_packages |  | ||||||
| cat /tmp/packages /tmp/local_packages | sort | uniq > /tmp/all_packages |  | ||||||
| cat /tmp/all_packages |fzf -e -m --preview 'cat <(pacman -Si {1}) <(pacman -Fl {1} | awk "{print \$2}")' --layout=reverse --prompt='Select packages to install (use TAB to toggle selection) >' | xargs -ro -n1 sudo pacman -S |  | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue