Add aliases for consistent package manager use between distros
This commit is contained in:
		
							parent
							
								
									ed286f1d0a
								
							
						
					
					
						commit
						d885ea89bb
					
				
					 1 changed files with 15 additions and 0 deletions
				
			
		
							
								
								
									
										15
									
								
								aliases/apt
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										15
									
								
								aliases/apt
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,15 @@ | ||||||
|  | #!/bin/zsh | ||||||
|  | 
 | ||||||
|  | # detect debianoid systems | ||||||
|  | # (not checking for apt here, as you can install it on other distros in addition | ||||||
|  | # to their package manager) | ||||||
|  | grep -iq 'ID_LIKE=debian' /etc/os-release || \ | ||||||
|  | 	grep -iq 'NAME=Ubuntu' /etc/os-release || \ | ||||||
|  | 	grep -iq 'NAME=Debian' /etc/os-release || \ | ||||||
|  | 	return | ||||||
|  | 
 | ||||||
|  | alias xq="apt-cache search" | ||||||
|  | alias xi="apt-get install" | ||||||
|  | alias xowner="dpkg -S" | ||||||
|  | alias xfiles="dpkg -L" | ||||||
|  | alias sv="systemctl" | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 crater2150
						crater2150