Advertisement
Guest User

pacman/aur helper script

a guest
Mar 26th, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. if [ "$1" = "install" ]; then
  4. shift 1
  5. yay -S "$@"
  6. fi
  7.  
  8. if [ "$1" = "add" ]; then
  9. shift 1
  10. yay -S "$@"
  11. fi
  12.  
  13. if [ "$1" = "update" ]; then
  14. shift 1
  15. yay -Syy
  16. fi
  17.  
  18. if [ "$1" = "upgrade" ]; then
  19. shift 1
  20. yay -Syyu
  21. fi
  22.  
  23. if [ "$1" = "purge" ]; then
  24. shift 1
  25. yay -Rscnd "$@"
  26. fi
  27.  
  28. if [ "$1" = "clean" ]; then
  29. shift 1
  30. yay -c
  31. yay -Scc
  32. fi
  33.  
  34. if [ "$1" = "cleanup" ]; then
  35. shift 1
  36. yay -c
  37. yay -Scc
  38. fi
  39.  
  40. if [ "$1" = "autoclean" ]; then
  41. shift 1
  42. yay -c
  43. yay -Scc
  44. fi
  45.  
  46. if [ "$1" = "autocleanup" ]; then
  47. shift 1
  48. yay -c
  49. yay -Scc
  50. fi
  51.  
  52. if [ "$1" = "delete" ]; then
  53. shift 1
  54. yay -Rscnd "$@"
  55. fi
  56.  
  57. if [ "$1" = "remove" ]; then
  58. shift 1
  59. yay -Rscnd "$@"
  60. fi
  61.  
  62. if [ "$1" = "del" ]; then
  63. shift 1
  64. yay -Rscnd "$@"
  65. fi
  66.  
  67. if [ "$1" = "search" ]; then
  68. shift 1
  69. yay -Ss "$@"
  70. fi
  71.  
  72. if [ "$1" = "forceinstall" ]; then
  73. shift 1
  74. yay -U /var/cache/pacman/pkg/"$@"
  75. fi
  76.  
  77. if [ "$1" = "info" ]; then
  78. shift 1
  79. yay -Qi "$@"
  80. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement