Compare commits
	
		
			2 Commits
		
	
	
		
			0.1.0
			...
			0df0a8dd6e
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0df0a8dd6e | |||
| aa97ad4c20 | 
							
								
								
									
										15
									
								
								pman.sh
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								pman.sh
									
									
									
									
									
								
							| @@ -8,7 +8,7 @@ more_arguments=false | |||||||
| su_needed=false | su_needed=false | ||||||
|  |  | ||||||
| # Check if yay (aur) | # Check if yay (aur) | ||||||
| if [ "$command_args" = "yay" ]; then | if [ "$command_args" = "yay" ] || [ "$command_args" = "aur" ]; then | ||||||
|   command="yay" |   command="yay" | ||||||
|   command_args="$1" |   command_args="$1" | ||||||
|   shift |   shift | ||||||
| @@ -46,6 +46,16 @@ elif [ "$command_args" = "install" ]; then | |||||||
|   if [ "$command" = "pacman" ]; then |   if [ "$command" = "pacman" ]; then | ||||||
|     su_needed=true |     su_needed=true | ||||||
|   fi |   fi | ||||||
|  | elif [ "$command_args" = "remove" ]; then | ||||||
|  |   command_args="-Rs" | ||||||
|  |   if [ "$command" = "pacman" ]; then | ||||||
|  |     su_needed=true | ||||||
|  |   fi | ||||||
|  | elif [ "$command_args" = "purge" ]; then | ||||||
|  |   command_args="-Rns" | ||||||
|  |   if [ "$command" = "pacman" ]; then | ||||||
|  |     su_needed=true | ||||||
|  |   fi | ||||||
| elif [ "$command_args" = "provides" ]; then | elif [ "$command_args" = "provides" ]; then | ||||||
|   command_args="-F" |   command_args="-F" | ||||||
| elif [ "$more_arguments" = "true" ]; then | elif [ "$more_arguments" = "true" ]; then | ||||||
| @@ -57,10 +67,13 @@ elif [ "$more_arguments" = "true" ]; then | |||||||
|   echo "               (aur packages - all the normal operations except config are available)" |   echo "               (aur packages - all the normal operations except config are available)" | ||||||
|   echo "  aur (yay)  - yay              | same as \"yay\"" |   echo "  aur (yay)  - yay              | same as \"yay\"" | ||||||
|   echo "  search     - pacman -Ss       | search packages" |   echo "  search     - pacman -Ss       | search packages" | ||||||
|  |   echo "  install    - pacman -S        | install packages" | ||||||
|   echo "  update     - pacman -Sy       | updates the repositories" |   echo "  update     - pacman -Sy       | updates the repositories" | ||||||
|   echo "  upgradable - pacman -Qu       | list available upgrades" |   echo "  upgradable - pacman -Qu       | list available upgrades" | ||||||
|   echo "  upgrade    - pacman -Syu      | upgrades your system" |   echo "  upgrade    - pacman -Syu      | upgrades your system" | ||||||
|   echo "  provides   - pacman -F        | list packages that provide file" |   echo "  provides   - pacman -F        | list packages that provide file" | ||||||
|  |   echo "  remove     - pacman -Rs       | remove packages & dependencies" | ||||||
|  |   echo "  purge      - pacman -Rns      | remove packages, dependencies & conf" | ||||||
|   echo "  config     - /etc/pacman.conf | edits pacman configuration" |   echo "  config     - /etc/pacman.conf | edits pacman configuration" | ||||||
|   exit 1 |   exit 1 | ||||||
| fi | fi | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user