mirror of
				https://github.com/Stunkymonkey/dotfiles.git
				synced 2025-10-30 18:02:10 +01:00 
			
		
		
		
	Create pacman alias only, if pacman available
This commit is contained in:
		
							parent
							
								
									b37ff1b7fc
								
							
						
					
					
						commit
						75e192f01f
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -67,7 +67,7 @@ if [ ! -z "$(type sudo 2>/dev/null)" -a "$USER" != 'root' ]; then | |||
| 	done | ||||
| 	unset sudo | ||||
| 
 | ||||
| 	pacman(){ | ||||
| 	type pacman >/dev/null 2>&1 && pacman(){ | ||||
| 		local sudo_needed | ||||
| 		# Check if pacman has -S, -R or -U option | ||||
| 		# which should indicate in most times if we need sudo | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benedikt Heine
						Benedikt Heine