minor fixes in scripts
This commit is contained in:
		
							parent
							
								
									29841882d4
								
							
						
					
					
						commit
						12cd2e2fba
					
				@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
export FZF_DEFAULT_OPTS='
 | 
			
		||||
--prompt="Manual: "
 | 
			
		||||
--preview="echo {1} | sed -E \"s/^\((.+)\)/\1/\" | xargs -I{S} man -Pcat {S} {2} 2>/dev/null"'
 | 
			
		||||
--preview="echo {1} | sed -E \"s/^\((.+)\)/\1/\" | xargs -I{S} man -Pcat {S} {2} | bat -l man -p --color=always 2>/dev/null"'
 | 
			
		||||
 | 
			
		||||
while getopts ":s:" opt; do
 | 
			
		||||
    case $opt in
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,4 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
# requires: expac
 | 
			
		||||
pacman -Qqm | sort | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)'
 | 
			
		||||
exit 0
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@ -1,4 +1,3 @@
 | 
			
		||||
#!/usr/bin/env bash
 | 
			
		||||
# requires: expac
 | 
			
		||||
comm -23 <(pacman -Qqe | sort) <({ pacman -Qqg base-devel; expac -l '\n' '%E' base; } | sort -u) | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)'
 | 
			
		||||
exit 0
 | 
			
		||||
pacman -Qqe | fzf --preview 'pacman -Qil {}' --bind 'enter:execute(pacman -Qil {} | less)'
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user